Understanding the MEAN stack [closed]

岁酱吖の 提交于 2019-12-13 04:25:01

问题


Just a quick question. I have searched for a user group to post this in a more suitable location to no avail.

I am getting familiar with the MEAN stack: https://github.com/linnovate/mean

However I cannot see the reason for the separation into .jade templates under app/views, and .html under public.

Anyone know the logic behind this?


回答1:


html files are static, they are delivered as is to the user, which is why they are stored in public folder. jade are templates, they are usually dynamically rendered (converted to html) per request. You can supply a data object (like user/session information) to templates to render html accordingly.



来源:https://stackoverflow.com/questions/20161088/understanding-the-mean-stack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!