我是玉的新手。
我的路线如下
html
head
title = "about"
body
p1 This is fortune page
blockquote #{fortune}
如何在jade文件中使用fortune作为键?
我试过的示例Jade代码:
<h1>About fortune</h1>
<p>Your fortune for the day:</p>
<blockquote>{{fortune}}</blockquote>
正在运行的HandleBars代码。
private static ISession session; //this is instantiated when bulding the rules dinamically
public void RulesTest(RulesTest command)
{
//entities holds ALL facts ever inserted in session
var entities = _session.Query<Entity>();
_session.Insert(command.Fact);
Rule rule = GetRule();
_session.Insert(rule.Condition);
_session.Insert(rule.Action);
_session.Fire();
}
如何直接在玉器中使用对象键?
答案 0 :(得分:0)
html
head
title = "about"
body
p1 This is fortune page
blockquote!= fortune
并且不要忘记将您的应用配置为使用玉引擎
app.set('view engine', 'jade');