寻找PHP的好HTML模板

时间:2010-04-15 08:35:53

标签: php html haml templating

这是一个HTML模板,不是php模板,不是java或其他什么。

我正在寻找像HAML for PHP这样的东西。我尝试了PHP,PHAML和PHPHaml的两个项目,这两个项目都有严重的错误。

你知道那里有什么好的html templater,最好是PHP吗?

编辑我正在寻找能够改变这种情况的东西

<h1>Heading</h1>
<p>entry</p>
<blockquote>quote</blockquote>

这样的事情

h1 : heading
p : entry
blockquote : quote 

phphaml那样做什么

3 个答案:

答案 0 :(得分:0)

你为什么不看纺织品?

http://textism.com/tools/textile/

查看右侧的示例语法,这是一个示例......

h2{color:green}. This is a title

h3. This is a subhead

p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote.

转换为:

<h2 style="color:green;">This is a title</h2>

<h3>This is a subhead</h3>

<p style="color:red;">This is some text of dubious character. Isn&#8217;t the use of &#8220;quotes&#8221; just lazy writing&#8212;and theft of &#8216;intellectual property&#8217; besides? I think the time has come to see a block quote.</p>

右侧边栏底部还有其他示例。

答案 1 :(得分:0)

尝试使用基于最小解析器引擎完全重写phamlp的http://haml-to-php.com/

答案 2 :(得分:-1)

您可以使用此:http://github.com/mo-zag/watcher。有关如何在Ruby Haml文件中添加PHP代码的指南。该观察者将观察文件并将其保存到您指定的文件夹中。设置起来也很简单。您不需要使用任何PHP模板解析器,只需使用Ruby中的本机Haml和Sass。