Y
Hacker News
new
|
ask
|
show
|
jobs
by
gigatexal
1953 days ago
Is there a bug in the trivial example? I can't seem to follow how it's referencing one template and another in the function. But I am not a JS dev so perhaps I am just missing something.
This looks neat tho.
1 comments
daliwali
1953 days ago
the root template references the other one with data-template=“#countbox”. this allows for composition and re-use of templates.
link