在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:yosssi/ace开源软件地址:https://github.com/yosssi/ace开源编程语言:Go 100.0%开源软件介绍:Ace - HTML template engine for GoOverviewAce is an HTML template engine for Go. This is inspired by Slim and Jade. This is a refinement of Gold. Example
becomes <!DOCTYPE html>
<html lang="en">
<head>
<title>Hello Ace</title>
<style type="text/css">
h1 { color: blue; }
</style>
</head>
<body>
<h1>Hello Ace</h1>
<div id="container" class="wrapper">
<p>
Ace is an HTML template engine for Go.<br>
This engine simplifies HTML coding in Go web application development.
</p>
</div>
<script type="text/javascript">
console.log('Welcome to Ace');
</script>
</body>
</html> FeaturesMaking Use of the Go Standard Template PackageAce fully utilizes the strength of the html/template package. You can embed actions of the template package in Ace templates. Ace also uses nested template definitions of the template package and Ace templates can pass pipelines (parameters) to other templates which they include. Simple SyntaxAce has a simple syntax and this makes template files simple and light. Caching FunctionAce has a caching function which caches the result data of the templates parsing process. You can omit the templates parsing process and save template parsing time by using this function. Binary Template Load FunctionAce has a binary template load function which loads Ace templates from binary data in memory instead of template files on disk. You can compile your web application into one binary file by using this function. go-bindata is the best for generating binary data from template files. Getting StartedPlease check the following documentation.
DocumentationYou can get the documentation about Ace via the following channels:
Discussion & ContactYou can discuss Ace and contact the Ace development team via the following channels: ContributionsAny contributions are welcome. Please feel free to create an issue or send a pull request. Renderers for web frameworks
Tools
Projects using AceHere is the list of the projects using Ace. Please feel free to add your awesome project to the list! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论