mint icon indicating copy to clipboard operation
mint copied to clipboard

Compilation to javascript

Open riffm opened this issue 15 years ago • 1 comments

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.

riffm avatar Jan 19 '11 11:01 riffm

Need decision for inheritance. To use:

#def slotname()

Or to use:

#function slotname()

?

riffm avatar Jan 20 '11 12:01 riffm