tim icon indicating copy to clipboard operation
tim copied to clipboard

A tiny, secure JavaScript micro-templating script.

Results 13 tim issues
Sort by recently updated
recently updated
newest added

- Created a new variable called `allowed` which helps build the approved list of functions - Orchestrated a new pre-processing `template.replace(...)` to allow for template changes of function based tags...

@premasagar - any thoughts on adding the ability to handle conditionals in tinytim ( since you have it in tim already )? That would really enhance the already very elegant...

Example: ``` js var template = '{{name}}\n'; var data = [ { name: 'John' }, { name: 'Billy' } ]; tim(template, data); ``` Would return: ``` html John Billy ```

the library needs unit tests to make sure updates won't break existing functionality and also to ensure code is working as expected. I recommend [Jasmine](http://pivotal.github.com/jasmine/) since it works on multiple...

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...

Currently, tim throws an exception that {{property}} not closed when it encounters a null value. This is because the typeof null === "object" and it is assuming this is an...

e.g. dom node with `src`: ``` // HTML // JS tim("foo", data, callback); ```

Firefox is URI-encoding Tim tags used within DOM tags as part of the tag itself. **Examples:** ``{{foo.text}}`` `` **Using Firebug, you can see that Firefox conveniently converts the tags to:**...