{"id":13693615,"url":"https://github.com/yosssi/ace","last_synced_at":"2026-04-09T03:31:03.688Z","repository":{"id":18587317,"uuid":"21791270","full_name":"yosssi/ace","owner":"yosssi","description":"HTML template engine for Go","archived":false,"fork":false,"pushed_at":"2018-06-17T06:37:00.000Z","size":136,"stargazers_count":837,"open_issues_count":30,"forks_count":49,"subscribers_count":20,"default_branch":"master","last_synced_at":"2026-03-11T04:15:26.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yosssi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-13T13:39:19.000Z","updated_at":"2026-01-24T21:42:11.000Z","dependencies_parsed_at":"2022-08-20T23:00:22.694Z","dependency_job_id":null,"html_url":"https://github.com/yosssi/ace","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/yosssi/ace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosssi%2Face","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosssi%2Face/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosssi%2Face/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosssi%2Face/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yosssi","download_url":"https://codeload.github.com/yosssi/ace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yosssi%2Face/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31584567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T17:01:13.951Z","updated_at":"2026-04-09T03:31:03.670Z","avatar_url":"https://github.com/yosssi.png","language":"Go","funding_links":[],"categories":["开源类库","Open source library","Template Engines","Go","模板引擎","模板引擎`模版渲染和模版生成处理库`","Relational Databases","\u003cspan id=\"模板引擎-template-engines\"\u003e模板引擎 Template Engines\u003c/span\u003e"],"sub_categories":["模板引擎","Template Engine","HTTP Clients","高級控制台界面","Advanced Console UIs","查询语","高级控制台界面","交流","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e"],"readme":"# Ace - HTML template engine for Go\n\n[![wercker status](https://app.wercker.com/status/8d3c657bcae7f31d10c8f88bbfa966d8/m \"wercker status\")](https://app.wercker.com/project/bykey/8d3c657bcae7f31d10c8f88bbfa966d8)\n[![GoDoc](http://godoc.org/github.com/yosssi/ace?status.svg)](http://godoc.org/github.com/yosssi/ace)\n\n## Overview\n\nAce is an HTML template engine for Go. This is inspired by [Slim](http://slim-lang.com/) and [Jade](http://jade-lang.com/). This is a refinement of [Gold](http://gold.yoss.si/).\n\n## Example\n\n```ace\n= doctype html\nhtml lang=en\n  head\n    title Hello Ace\n    = css\n      h1 { color: blue; }\n  body\n    h1 {{.Msg}}\n    #container.wrapper\n      p..\n        Ace is an HTML template engine for Go.\n        This engine simplifies HTML coding in Go web application development.\n    = javascript\n      console.log('Welcome to Ace');\n```\n\nbecomes\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eHello Ace\u003c/title\u003e\n    \u003cstyle type=\"text/css\"\u003e\n      h1 { color: blue; }\n    \u003c/style\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003ch1\u003eHello Ace\u003c/h1\u003e\n    \u003cdiv id=\"container\" class=\"wrapper\"\u003e\n      \u003cp\u003e\n        Ace is an HTML template engine for Go.\u003cbr\u003e\n        This engine simplifies HTML coding in Go web application development.\n      \u003c/p\u003e\n    \u003c/div\u003e\n    \u003cscript type=\"text/javascript\"\u003e\n      console.log('Welcome to Ace');\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Features\n\n### Making Use of the Go Standard Template Package\n\n**Ace fully utilizes the strength of the [html/template](http://golang.org/pkg/html/template/) package.** You can embed [actions](http://golang.org/pkg/text/template/#hdr-Actions) of the template package in Ace templates. Ace also uses [nested template definitions](http://golang.org/pkg/text/template/#hdr-Nested_template_definitions) of the template package and Ace templates can pass [pipelines](http://golang.org/pkg/text/template/#hdr-Pipelines) (parameters) to other templates which they include.\n\n### Simple Syntax\n\nAce has a simple syntax and **this makes template files simple and light**.\n\n### Caching Function\n\nAce 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.\n\n### Binary Template Load Function\n\nAce 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](https://github.com/jteeuwen/go-bindata) is the best for generating binary data from template files.\n\n## Getting Started\n\nPlease check the following documentation.\n\n* [Getting Started](documentation/getting-started.md) - shows the getting started guide.\n* [Examples](examples) - shows the examples of the web applications which use the Ace template engine.\n\n## Documentation\n\nYou can get the documentation about Ace via the following channels:\n\n* [Documentation](documentation) - includes the getting started guide and the syntax documentation.\n* [GoDoc](https://godoc.org/github.com/yosssi/ace) - includes the API documentation.\n\n## Discussion \u0026 Contact\n\nYou can discuss Ace and contact the Ace development team via the following channels:\n\n* [GitHub Issues](https://github.com/yosssi/ace/issues)\n* [Gitter (Chat)](https://gitter.im/yosssi/ace)\n\n## Contributions\n\n**Any contributions are welcome.** Please feel free to [create an issue](https://github.com/yosssi/ace/issues/new) or [send a pull request](https://github.com/yosssi/ace/compare/).\n\n## Renderers for web frameworks\n\n* [Martini Acerender](https://github.com/yosssi/martini-acerender) - For [Martini](http://martini.codegangsta.io/)\n\n## Tools\n\n* [vim-ace](https://github.com/yosssi/vim-ace) - Vim syntax highlighting for Ace templates\n* [ace-tmbundle](https://github.com/yosssi/ace-tmbundle) - TextMate/Sublime syntax highlighting for Ace templates\n* [atom-ace](https://github.com/pariz/atom-ace) - Atom Editor syntax highlighting for Ace templates\n\n## Projects using Ace\n\n[Here](documentation/projects-using-ace.md) is the list of the projects using Ace. Please feel free to add your awesome project to the list!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosssi%2Face","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyosssi%2Face","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyosssi%2Face/lists"}