| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
10年前发布

Go 模板引擎:pongo2

pongo 2 是一个语法与 Django 模板类似的 Go 语言模板引擎,并且完全兼容 Django 模板。pongo 2提供了复杂和嵌套函数调用和强大的类C表达式。

{% if user.is_moderator && (user.moderation_level > 2 || user.moderation_level <= 0) %}     ...  {% else %}     ...  {% endif %}    {% if (check_access("admin", userprofile.username) && userprofile.is_verified())      || admin_happyhour %} ... {% endif %}    {% if helper_functions.is_server_online("florian-schlachter.de") %}Server is up!{% endif %}    {{ make_statuscode_verbose(      user.lang, make_http_request(server.url, "/index.php").statuscode) }}

项目主页:http://www.open-open.com/lib/view/home/1404198271077

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1404198271077.html
pongo2 模板引擎