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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -