Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
deoxxa
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
61.
▲
by
deoxxa
15y ago
It's mainly just slow - the whole set of code has to be parsed, processed, validated, run, etc every time it's used. It's not insecure in this usage (even if it were used on the client), as all the actual code is generated by uglify-js via
62.
▲
by
deoxxa
15y ago
The only thing I'm really taking from the django system is the syntax and some of the concepts. As far as I know, it's implemented completely differently. Very simple django/jinja2 templates will compile with Ginger, but the functionality i
63.
▲
by
deoxxa
15y ago
It's definitely evil, when it's used at runtime. In general (non-testing) usage, it would be written out to a file after compilation and there'd be no eval() action at runtime.
64.
▲
Show HN: A django-inspired JavaScript templating system
(github.com)
14 points
by
deoxxa
15y ago
|
7 comments
65.
▲
by
deoxxa
15y ago
That's not an unfair comparison at all - indexing the data in a JSON blob is entirely possible and practical.