Skip to content

Make precompilation of templates possible. #16

@zorbash

Description

@zorbash

Other javaScript templating engines support compiling the template text to a function which can then be called many times with different values without having the original template text be compiled again and again.

E.g in underscore templates:

    var compiled = _.template("hello: <%= name %>");
    compiled({name : 'moe'});
    "hello: moe"

Is there any "hidden" way you can do that with tim?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions