templates - Meteor: index.html is getting huge -
in meteor project can separate javascript files in client
, server
directories. cannot find solution html templates need define.
the problem have need embed svg image in template too, huge image. have html file 2 times 'huge' :)
the reason need have svg inline in html/template because need style css. suggestions ?
you can put .html files anywhere! besides server
directory, of course. natural place store them client
folder, , practice keep each template in separate file. javascript code related template (data helpers, events, callbacks) can go file same name , extension .js instead of .html. these basics if want keep project tidy.
Comments
Post a Comment