-
Notifications
You must be signed in to change notification settings - Fork 2k
suggestion: add views in index.html and use templateCache #769
Comments
@andreafdaf I too would like to use templateCache. I have a PR to return the /client to the include URL's I want to get that merged in and then work on a templating solution as well. Lets start by +1 that PR to get it in and I would work with you on getting templateCache introduced. It would increase performance as well. |
Hey @trainerbill ! I'm sorry but I cannot see how is this PR related to what I said... once we introduce templateCache the above way there is no need to worry about the path for the views since they get all "stuffed" into the main HTML file and called by their id when used inside angular If someone says that PR's are welcome I've got it ready already 👍 |
@andreafdaf If you've got a PR ready, submit it and we'll all review it! :-D PR's are always welcome, then it's up to the community for reviewing and discussing if it's an addition to the code base that's wanted by the community. |
after talking with @codydaig it looks that it is already implemented in mean, but works only if you build your project with gulp... I think that things will get more documented over time so it's not a problem shall we close? :) |
yep, thanks for confirming @andreafdaf |
Hi, I've already done this in a project based on mean 0.4.0 so I guess I can make a PR if you want. Let me explain:
config/assets/default.js
config/config.js
config/lib/express.js
modules/core/server/controllers/core.server.controller.js
modules/core/server/views/layout.server.view.html
then just use it like that for a view named app.client.view.html:
I saw a bunch of discussions about versions, PR and stuff so... tell me what you think and what to do :)
The text was updated successfully, but these errors were encountered: