HAML 与 Zen 编码
我读到了HAML< /a> 与 Zen 编码。两者都可以节省输入 HTML 的时间。
哪个比较好用,为什么?
I read about both HAML vs Zen Coding. Both can save time in typing HTML.
Which would be good to use and why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
实际上可以使用 Zen Coding 来生成 HAML。
示例:
默认情况下将生成:
如果您希望将该语句扩展为 HAML,请将“|haml”附加到您的缩写:
这应该为您提供以下内容:
阅读 此处了解有关 Zen Coding 扩展过滤器的更多信息。
One can actually use Zen Coding to produce HAML.
Example:
Will produce, by default:
If you would like that statement to expand to HAML, append "|haml" to your abbreviation:
That should give you the following:
Read here to learn more about filters for the Zen Coding expansions.
HAML 是一种迷你标记语言,而 Zen Coding 是为各种编辑器制作的插件(不是标记语言)的集合。
您可以使用其中任何一个。不过我个人使用 Zen Coding。
引用:
--
HAML is kind of mini markup language whereas Zen Coding is collection of plugins (not markup language) made for various editors.
You can use either of them. I personally use Zen Coding though.
Quote:
--
您实际上可以同时使用两者:) 这很快:)
you can use both actually at the same time :) that's fast :)