【发布时间】:2014-02-06 16:58:54
【问题描述】:
假设我有以下shakespeare 模板代码:
$doctype 5
<html>
<body>
<h2>This is a test
<div>Value of test variable: #{testVariable}
在文件mytemplate.hamlet中。
如何在不将模板显式粘贴到源代码中的情况下使用shamletFile 渲染它?
注意:这个问题是立即以问答方式回答的,因此故意不显示任何研究工作。
【问题讨论】: