在Muse定义的模板里,如果要对其中一些可变的内容用lisp函数来处理,可以在其中嵌入lisp函数,只要把lisp语句括在<lisp>和</lisp>之间即可。
比如说我在页面的footer里要设定网页发布的时间,就可以加上这么变态的几句来处理:
最后更新:
<lisp>
(format-time-string “%4Y-%2m-%2d-%T”
(nth 5 (file-attributes
muse-publishing-current-file)))
</lisp>
当然,如果你是放到变量muse-xhtml-footer里,对“要记得用\”来转义。比如,加入了这一句后,我的muse-xhtml-footer就成了这样:
;;;; muse xhtml-footer
(setq muse-xhtml-footer ”
<!– end page content –></div><div id=\”footer\”><br />
<!– it’d be super if you left this link intact –>
<a href=\”http://www.dream-logic.com\”>Web Design by dreamLogic</a>
最后更新:
<lisp>
(format-time-string \”%4Y-%2m-%2d-%T\”
(nth 5 (file-attributes
muse-publishing-current-file)))
</lisp>
</div>
</div></div>
</body>
</html>
“)
最后转出的效果如下图所示:

博主的留言板貌似没有提交按钮噢:-)
Thanks. 我已经弄好了。呵,应该是用http://www.jotform.com/的留言本的时候,没注意,不小心删掉了。