Fragment.js - A tiny tool for loading html fragments and templates
danielrapp.github.com
Fragment.js - A tiny tool for loading html fragments and templates
1–10 of 14 posts
Re: Fragment.js - A tiny tool for loading html fragments and templates
#2Re: Fragment.js - A tiny tool for loading html fragments and templates
#3Re: Fragment.js - A tiny tool for loading html fragments and templates
#4Super neat but I can't think of a scenario where I would need it. What was the reason you built this for?
Re: Fragment.js - A tiny tool for loading html fragments and templates
#5This is functionnality very similar to http://www.aimath.org/knowlepedia/ but done much better.
example usage of knowl.js here (loads proofs inline) http://linear.ups.edu/html/section-HSE.html
Re: Fragment.js - A tiny tool for loading html fragments and templates
#6Re: Fragment.js - A tiny tool for loading html fragments and templates
#7Cool stuff.
Re: Fragment.js - A tiny tool for loading html fragments and templates
#8If you added a build process that actually pulled in the source files for a bundled production file you might have something similar to RequireJS for templates. Cool stuff.
Re: Fragment.js - A tiny tool for loading html fragments and templates
#9It's a nice fun little tool -- but it's rather inefficient in terms of the number of AJAX requests that it needs to do in order to fetch the templates. The rather simple linked page needs a total of 3 AJAX requests, one for each template. As your app (especially mobile apps) needs more templates, it probably won't be very performant. There's a reason why Ember and other frameworks prefer their templates to be embedde…