【文件属性】:
文件名称:ace:GoHTML模板引擎
文件大小:54KB
文件格式:ZIP
更新时间:2021-05-12 13:39:13
Go
Ace-GoHTML模板引擎
概述
Ace是GoHTML模板引擎。 这是受到和启发。 这是的提炼。
例子
= doctype html
html lang=en
head
title Hello Ace
= css
h1 { color: blue; }
body
h1 {{.Msg}}
#container.wrapper
p..
Ace is an HTML template engine for Go.
This engine simplifies HTML coding in Go web application development.
= javascript
console.log('Welcome to Ace');
变成
<!DOCTYPE html >
【文件预览】:
ace-master
----plain_text.go(1KB)
----formatter.go(1KB)
----line.go(3KB)
----helper_method_yield.go(1KB)
----html_comment.go(1KB)
----helper_method_content.go(1KB)
----helper_method_css.go(1KB)
----empty_element.go(550B)
----options.go(3KB)
----element.go(2KB)
----element_base.go(2KB)
----wercker.yml(892B)
----plain_text_inner.go(888B)
----read.go(3KB)
----examples()
--------cache_options()
--------external_css_and_js()
--------css_javascript_helper_method()
--------plain_texts()
--------set_default_value_to_the_yield_helper_method()
--------load_templates_from_binary_data()
--------comments()
--------include_helper_method()
--------dynamic_reload()
--------change_action_delimiter()
--------single_template()
--------actions()
--------README.md(865B)
--------pass_pipeline_to_included_template()
--------base_inner_template()
--------set_custom_functions()
--------html_tags()
----formatter_test.go(1KB)
----parse.go(2KB)
----comment.go(503B)
----ace.go(1KB)
----helper_method_include.go(1KB)
----LICENSE(1KB)
----doc.go(61B)
----file.go(222B)
----html_tag.go(7KB)
----README.md(4KB)
----source.go(324B)
----element_test.go(71B)
----helper_method_javascript.go(1KB)
----helper_method_doctype.go(2KB)
----compile.go(2KB)
----action.go(828B)
----.gitignore(259B)
----cmd()
--------ace()
----compile_test.go(2KB)
----documentation()
--------projects-using-ace.md(509B)
--------options.md(774B)
--------syntax.md(7KB)
--------getting-started.md(2KB)
--------README.md(149B)
----result.go(375B)
----helper_method_conditional_comment.go(3KB)