coolony / kiwi

Simple yet powerful asynchronous JavaScript template engine based on jQuery Template syntax, usable server-side or client-side.
MIT License
41 stars 6 forks source link

Custom Closed Tags #23

Open garthenweb opened 11 years ago

garthenweb commented 11 years ago

I like to build a custom tag with an opening and closing tag but can not find a option to set this. Just got the error: "Tokenization error: test is not a block tag."

kiwi.tools.createSimpleTag('test', function(context, name) {
    return name;
});
{{test "123"}}Content{{/test}}

If there is already an option to do that, please update the readme. Else it would be a great feature!