-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
37 lines (35 loc) · 1.91 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
4. Make more expressive ex.html.
7. Think about TMPL_ELSE and close conditional tag. At close we test only
TMPL_ELSE, but strange things like TMPL_IF...TMPL_ELSE.../TMPL_IFNDEF is
considered correct.
8. Find all tag names which we need to include in _get_first_element_name().
9. Add tests for TMPL_FUNC and long.var.names .
11. Group tests in test.html by modules(core,ifdef,func).
12. May be this.funcs = {} must not be in init function. May be it must
exist in prototype(or like htmltmpl.p), thus we can assign to it functions for all htmltmpl
instances. Init in such a case can be the next:
htmltmpl.prototype.inits.push(function () {
var f;
this.funcs = {};
for(f in htmltmpl.funcs)
this.funcs[f] = htmltmpl.funcs[f];
}
13. Create a separate property for extensions data. E.g. htmltmpl.e.funcs.funcs instead of
this.funcs(htmltmpl.funcs); htmltmpl.prototype.e.funcs.get_data instead of
htmltmpl.prototype.get_data; htmltmpl.prototype.e.funcs.hdlr_funcs_parse instead of
htmltmpl.prototype.hdlr_funcs_parse.
17. Fix constructor for the case of String object as tmpl parameter. typeof(tmpl) will
be "object" in this case and instanceof String is true.
18. Add examples related to tmpl_is_commented option.
19. Add info to tmpl_is_commented option overview about usecases(when template
contains table element or select element).
20. ret_dom:1 or ret_dom:true - all variants are good.
21. prefix error messages with "htmltmpl." to distinguish htmltmpl errors from others.
22. Remake internal array structures with objects.
23. Check throw constructs. May be a bug with variable name reporting. Because
it can be an array, not only a string.
24. Add tests for TMPL_INCLUDE
25. Add TMPL_SWITCH/TMPL_CASE.
26. Remove support for single quotes for attribute values?
27. Add support for multiline tags? Can be done simply by adding s to rex: tag,
tag_attrs, rex at tmpl_prepare().