【发布时间】:2010-10-08 17:55:32
【问题描述】:
我使用 Hakyll 生成一些文档,我注意到它有一种奇怪的方式来关闭它生成的代码中的 HTML 标签。
有一个页面,他们说你必须像他们一样生成标记,否则在某些情况下你的页面布局会被破坏,但我现在找不到。
我创建了一个小测试页面(代码如下),其中有一个带有“正常”HTML 标记的红色层,以及一个带有类似于 hakyll 生成的标记的黄色层。
我在 Firefox 中看不出两个 div 有什么区别。
谁能解释他们说的是不是真的?
<html>
<body>
<!-- NORMAL STYLE -->
<div style="background: red">
<p>Make available the code from the library you added to your application. Again, the way to do this varies between languages (from adding import statements in python to adding a jar to the classpath for java)</p>
<p>Create an instance of the client and, in your code, make calls to it through this instance's methods.</p>
</div>
<!-- HAKYLL STYLE -->
<div style="background: yellow"
><p
>Make available the code from the library you added to your application. Again, the way to do this varies between languages (from adding import statements in python to adding a jar to the classpath for java)</p
><p
>Create an instance of the client and, in your code, make calls to it through this instance's methods.</p
></div
>
</body>
<html>
【问题讨论】:
-
看起来这个问题被编辑了,以至于普通风格和Hakyll风格之间的区别消失了。只是为其他像我一样困惑的人提一下。
标签: html markup template-engine hakyll