A string template language hosted by Python3 runtime

Overview

Meme

A string template language hosted by Python3 runtime. Conventionally, the source code of this language is written in plain text with utf-8 encoding and stored in a file with extension ".meme".

Philosophy

Human beings repeat one another, even themselves from time to time. Emerging from the dark flow of collective intelligence, memes are how we degenerated web inhabitants express our feelings, thoughts and our very existence. Yet, such expression is causing more and more brothers to suffer from language or behavioral disorders (e.g. little-pinky or vim-handicapped). The meme language is therefore introduced to DRY the web environment and encourage diversity across our mental homeland.

Grammar

To keep the language implementation concise, the grammar of said language is aligned with the syntax described in PEP 498.

Later you may find a detailed and formalized specification in spec.pdf, if the author (?) is charged up and functional.

Implementation

Following the creed of DRY, we can use only 8 lines of code (with 2 lines of blanks) to implement said language. You may inspect the source code if you like. Feel the spirit of low code!

Installation

The language is based on Python 3, which can be installed directly or via your system package manager. Make sure that you install a version that is superior than or equal to Python 3.6. Make sure that you also install pip, the package manager for Python as well.

Then run

pip install --upgrade meme-lang

and meme-lang will be installed to your device.

Usage

Using meme is easy.

# import
from meme import Meme

# your meme template name
meme_name = ".meme"
# the contents to be filled into the meme template
meme_content = {}
# get the str of meme
meme = Meme(meme_name).print(**meme_content)

# output
print(meme)

You may also create various memes and collect them for future use.

Disclaimer

This is merely a joke. Don’t take this seriously.

A string template language hosted by Python3 runtime

A string template language hosted by Python3 runtime. Conventionally, the source code of this language is written in plain text with utf-8 encoding and stored in a file with extension ".meme".

6 Nov 02, 2022
Mako Templates for Python

Mako Templates for Python Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for

mike bayer 173 Dec 22, 2022
✈️ HTML Template engine for python. Supports XSS preventation and many more!

Htmotor HTML Template Engine for Python! Installation: Open your terminal and type pip install htmotor.

Penguen 3 Nov 06, 2022
A simple, elegant Python based web templating engine (part of web.py).

Templator Simple, elegant Python based web templating (part of web.py). If you are familiar with Python, there is no new syntax to learn. This is a st

Dan 1 Dec 13, 2021
Use a docx as a jinja2 template

Use a docx as a jinja2 template

Eric Lapouyade 1.4k Jan 02, 2023
HTML Template Linter and Formatter. Use with Django, Jinja, Nunjucks and Handlebars templates.

Find common formatting issues and reformat HTML templates. Django · Jinja · Nunjucks · Handlebars · Mustache · GoLang Ps, --check it out on other temp

Riverside Healthcare Analytics 263 Jan 01, 2023
Template Render Engine

Template Render Engine Why TRender? It is just another template render engine so why should one choose TRender? TRender was originally created for Sir

Cesbit 18 Jul 30, 2022
A general purpose template driven code generator

💩 Shit Mountain Generator A general purpose template driven code generator Contribute shits to your company's shit mountain more efficiently! Quick S

Kelly 14 Mar 09, 2022
Mako Templates for Python

Mako Templates for Python Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for

SQLAlchemy 233 Dec 21, 2022
Fast HTML/XML template engine for Python

Overview Chameleon is an HTML/XML template engine for Python. It uses the page templates language. You can use it in any Python web application with j

Malthe Borch 151 Dec 22, 2022
Simple reuse of partial HTML page templates in the Jinja template language for Python web frameworks.

Jinja Partials Simple reuse of partial HTML page templates in the Jinja template language for Python web frameworks. (There is also a Pyramid/Chameleo

Michael Kennedy 106 Dec 28, 2022