Amber alrready has similar feature cslled HTMLSnippet. It loads all snippets (specially tagged parts of HTML) on the start page and makes them "virtual tags" for you to use (that is, it generates methods in HTMLCanvas that copy the contents and allow you to insert contents at specified location).
Later you can add any snippet yourself or let the system load all snippets found in specific selector (IOW yoy can load them as you planned and let the system find them and insert into HTMLCanvas for you; of course every time snippets are searched for this way, they are removed from their actual position).
In trapped, I use different thing, though; the xontent jQuery plugin, building on the idea of the HTML5 template tag.
And there is Polymer there, of course.
Sebastian Sastre <
[hidden email]>napísal/a:
Hey guys,
is a simple thing that might produce big output.
Here I'm sharing one of the tricks we've learned doing a demo for a new client last week:
The world beyond the canvas, loading templates dynamically in Amber
http://sebastianconcept.com/brandIt/the-world-beyond-the-canvas-loading-templates-dynamically-in-amber
seb
--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
For more options, visit
https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
For more options, visit
https://groups.google.com/d/optout.