node template engine节点模板引擎
2012-10-05 16:28
465 查看
当我去看是否值得,或则说sparkview engine是否还在更新,是否具备市场的时候,又发现新东西了,node template engine
It's time for another minor release bump in Spark as we begin to support a different kind of syntax called Jade. You can read up more about Jade athttp://jade-lang.com/
To start using it, simply add a reference to Spark and start adding *.shade files to your project and as long as Spark is registered as a view engine, then it should automatically attempt Jade parsing to HTML. That of course, means that you can mix and match
.spark and .shade files and the parser will work just fine with both of them. You can even create .shade partials that can be consumed by .spark views.
http://jade-lang.com/ 这段代码很有趣的,但一个quick问题来了,这个会成为趋势么?当我们在ROI考量的时候,需要明白一个事情:
1。是否可控?2。是否持续?3。学习曲线如何?it's not just for you, for your guys
倘若后续无人使用,形成不了市场,failed! lose your time!
确定一个事情是不容易的,jade::可靠,优雅,富模板,nodejs,看起来美好的描述:Jade - robust, elegant, feature rich template engine for nodejs
看完https://github.com/visionmedia/jade可没发现说和.net mvc有啥关系啊
1. aspx和jade和spark可以同时存在
2。通过filter可以实现theme的过滤
var services = SparkEngineStarter.CreateContainer();
services.AddFilter(ThemeDescriptorFilter.For(GetTheme));
SparkEngineStarter.RegisterViewEngine(engines, services);
It's time for another minor release bump in Spark as we begin to support a different kind of syntax called Jade. You can read up more about Jade athttp://jade-lang.com/
To start using it, simply add a reference to Spark and start adding *.shade files to your project and as long as Spark is registered as a view engine, then it should automatically attempt Jade parsing to HTML. That of course, means that you can mix and match
.spark and .shade files and the parser will work just fine with both of them. You can even create .shade partials that can be consumed by .spark views.
http://jade-lang.com/ 这段代码很有趣的,但一个quick问题来了,这个会成为趋势么?当我们在ROI考量的时候,需要明白一个事情:
1。是否可控?2。是否持续?3。学习曲线如何?it's not just for you, for your guys
倘若后续无人使用,形成不了市场,failed! lose your time!
确定一个事情是不容易的,jade::可靠,优雅,富模板,nodejs,看起来美好的描述:Jade - robust, elegant, feature rich template engine for nodejs
看完https://github.com/visionmedia/jade可没发现说和.net mvc有啥关系啊
1. aspx和jade和spark可以同时存在
2。通过filter可以实现theme的过滤
var services = SparkEngineStarter.CreateContainer();
services.AddFilter(ThemeDescriptorFilter.For(GetTheme));
SparkEngineStarter.RegisterViewEngine(engines, services);
相关文章推荐
- nVelocity -.NET的模板引擎(template engine) --转载
- 如何选择Javascript模板引擎(javascript template engine)?
- org.tinygroup.templateengine-模板引擎
- 如何选择Javascript模板引擎(javascript template engine)?
- 500 Lines or Less: A Template Engine(模板引擎)
- 如何选择Javascript模板引擎(javascript template engine)?
- Velocity基于java的模板引擎(template engine)
- 推荐一个模板引擎 - templateengine
- 如何选择Javascript模板引擎(javascript template engine)?
- 推荐一个模板引擎 - templateengine
- 【原创】推荐一个模板引擎 - templateengine
- Beyond The Template Engine超越模板引擎
- C++模板引擎Ctemplate的介绍
- C#模板引擎 RazorEngine3.7的扩展 — 引用布局页
- artTemplate模板引擎学习实战
- 对kingthy创作的Vtemplate模板引擎的使用心得
- javascript模板引擎 Arttemplate
- BaiduTemplate [ 百度模板引擎 ]
- 百度JS模板引擎 baiduTemplate 1.0.6 版
- SimpleTemplate模板引擎开发