寻找一个好的 PHP HTML 模板器

发布于 2024-08-28 19:01:30 字数 1539 浏览 6 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

合久必婚 2024-09-04 19:01:30

为什么不看看纺织呢?

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

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

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’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.</p>

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

Why don't you look at textile?

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

Look at the example syntax on the right hand side, here is an example...

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.

Converts to:

<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’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.</p>

There are other examples at the bottom of the right sidebar.

遗忘曾经 2024-09-04 19:01:30

尝试 http://haml-to-php.com/ 这是基于 phamlp 的完全重写一个最小的解析器引擎。

Try http://haml-to-php.com/ which is a complete rewrite of phamlp based on a minimal parser engine.

記柔刀 2024-09-04 19:01:30

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

You can use this: http://github.com/mo-zag/watcher. There's a guide on how to add PHP code inside Ruby Haml files. This watcher will watch the files and save them into your given folder. It's quite simple to set up, too. You don't need to use any PHP template parsers, you just use the native Haml and Sass in Ruby.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文