akdubya / dustjs

Asynchronous templates for the browser and node.js
http://akdubya.github.com/dustjs/
MIT License
1.44k stars 131 forks source link

can't use block name with minus symbol #4

Closed semanticprogrammer closed 13 years ago

semanticprogrammer commented 13 years ago

When I tried the following template
{+my-title} Base Title {/my-title}

I got the error: SyntaxError: Expected buffer, comment, partial, reference, section or special but "{" found.

akdubya commented 13 years ago

Dust only accepts valid JS identifiers. my_title will work.