0

I realize from the Aurelia 0.10.0 Release & Status blog post that Aurelia's "bundling solution is about 50% complete".

For the purpose of releasing a standalone embeddable Aurelia app (on 3rd party site), am interested to know if there is currently a method for loading HTML view templates dynamically for use with RequireJS (Almond) and the text! plugin or an equivalent (SystemJS or other) mechanism.

Or do we need to wait for the bundler?

Ashley Brener
  • 268
  • 3
  • 12

1 Answers1

3

There isn't a way to do this currently. However, that's something we can add...and we do expect to make some improvements in this area as part of our general bundling work.

EisenbergEffect
  • 3,989
  • 22
  • 26
  • 1
    To expound on what Rob said: Currently, the Default Loader for Aurelia uses SystemJS to get the path to a template. After that, HTMLTemplate technology is used to actually load the template. That being said, if you feel up to it, you could take the Default Loader code and change it to use SystemJS or RequireJS to load HTML Templates. Here is the repo for the default loader: https://github.com/aurelia/loader-default If you would like some help figuring out what you need to do, please join us in our Gitter channel at https://gitter.im/Aurelia/Discuss – Ashley Grant Apr 06 '15 at 14:14
  • Where do I book it in @EisenbergEffect :) ? – Ashley Brener Apr 06 '15 at 18:49
  • @Ashley Grant, I do feel up to it and would like to understand more about the loader interface and whether it makes sense. Will join the Gitter, thanks Rob, Ashley. – Ashley Brener Apr 06 '15 at 18:52