了解MEAN堆栈 [英] Understanding the MEAN stack

查看:196
本文介绍了了解MEAN堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是一个简单的问题。我已经寻找一个用户组在更合适的位置无果后这一点。

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

我越来越熟悉MEAN堆栈: https://github.com/linnovate/mean

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

不过,我不能看到分离成下应用程序/意见.jade模板的原因,以及在公共.HTML。

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?

推荐答案

HTML文件是静态的,它们将被作为是给用户,这就是为什么它们存储的公共文件夹中。翡翠是每个请求的模板,他们通常是动态呈现(转换为HTML)。您可以提供一个数据对象(如用户/会话信息)模板相应地呈现HTML。

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.

这篇关于了解MEAN堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆