是否有用于 Python 和 Django 的 HAML 实现 [英] Is there a HAML implementation for use with Python and Django

查看:25
本文介绍了是否有用于 Python 和 Django 的 HAML 实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我偶然发现了 HAML,这是一种标记内容和编写 HTML 模板的有趣而漂亮的方式.

I happened to stumble across HAML, an interesting and beautiful way to mark up contents and write templates for HTML.

由于我使用 Python 和 Django 来满足我的 Web 开发需求,所以我想看看是否有可用于替换 Django 模板的 HAML(或一些类似概念——不必完全相同)的 Python 实现引擎.

Since I use Python and Django for my web developing need, I would like to see if there is a Python implementation of HAML (or some similar concepts -- need not be exactly identical) that can be used to replace the Django template engine.

推荐答案

您可能对 SHPAML 感兴趣:

You might be interested in SHPAML:

http://shpaml.com/

我正在积极维护它.它是一个简单的预处理器,因此它与 Genshi 等任何其他工具无关.我碰巧在 Django 中使用它,所以有一点点 Django 支持,但它不应该干扰大多数其他用例.

I am actively maintaining it. It is a simple preprocessor, so it is not tied to any other tools like Genshi. I happen to use it with Django, so there is a little bit of Django support, but it should not interfere with most other use cases.

这篇关于是否有用于 Python 和 Django 的 HAML 实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆