mint icon indicating copy to clipboard operation
mint copied to clipboard

indention-based template engine, implemented in python

Results 21 mint issues
Sort by recently updated
recently updated
newest added

@riffm, I've corrected a typographical error in the documentation of the [mint](https://github.com/riffm/mint) project. You should be able to merge this pull request automatically. However, if this was intentional or if...

On the new lexer branch. Both **main**.py: and template.py have the line: .lexer import tokenizer But if you go to the lexer.py there is nothing called tokenizer. Anyhow you probably...

``` diff -r 94ac5c1e9f6b third-party/mint.py --- a/third-party/mint.py Sun Jul 22 22:38:44 2012 +0400 +++ b/third-party/mint.py Fri Jul 27 16:19:43 2012 +0400 @@ -1466,7 +1466,7 @@ if self.cache: self._templates_cache[template] = tmpl...

I propose preprocessing and postprocessing during template parsing. Preprocessing syntax: ``` @tag:pre @tag:pre,pre1 ``` Postprocessing syntax: ``` @tag::post @tag::post,post1 ``` Mixed: ``` @tag:pre:post ``` Note: I'm not sure about multiple...

proposal

There are cases, when text content is needed "as is" (with special indention). I think that we need to introduce two more tokens for this case. Begin mark of such...

proposal

Get rid of global vars used in comprehensions.

How does mint compare to hamlpy, or shpaml?

It's easy to implement and is so useful.

Each node, if it has no conditional attributes `@.attr(value)` or `@+attr(value)` can be represented as strings concatenation.

proposal

Поймал себя на том, что написал следующую конструкцию @tag1 @tag2 -- blabla #if smth: @.attr(blabla) По логике вложений, атрибут должен прописываться у tag1. Это, как я понимаю, убивает на корню...

bug