mint
mint copied to clipboard
Compilation to javascript
I suggest to implement support of this kind of mint templates:
@ul.class(images)
#for (var i=0; i<images.length; i++)
@li
#if (images[i].title)
@p {{ images[i].title }}
@img.alt().src({{ images[i].url }})
As you can see we just replace python part of templates with javascript. The compiled result of this templates is big question. Write your suggests here about that.
Need decision for inheritance. To use:
#def slotname()
Or to use:
#function slotname()
?