【发布时间】:2011-03-19 01:16:11
【问题描述】:
我正在寻找的东西可以让我接受这样的事情:
index.html.template:
<html>
<body>
<# include ("body.html.template") #>
</body>
</html>
body.html.template:
Hello World! <# include("text.txt") #>
文本.txt:
4
然后把它变成这样:
<html>
<body>
Hello World! 4
</body>
</html>
虽然示例是 HTML,但我可能最终会在很多奇怪的地方使用类似的东西。我认为那里有许多预处理器。有适合这项任务的非常基本的吗?
【问题讨论】:
标签: templates code-generation preprocessor html-generation