Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/yosssi/ace
Browse files Browse the repository at this point in the history
  • Loading branch information
yosssi committed Jul 27, 2014
2 parents 6f043f2 + 6d37788 commit 0d9baa6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ becomes

### Making Use of the Go Standard Template Package

**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.
**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.

### Simple Syntax

Ace has a simple syntax and **this makes template files simple and light**.

### Caching Function

Ace 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. Using this function is recommended in production.
Ace 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. **Using this function is recommended in production.**

### Binary Template Load Function

Ace has a binary template load function which loads Ace templates from binary data instead of template files. **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.
Ace 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.

## Getting Started

Expand Down
4 changes: 4 additions & 0 deletions examples/cache/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Cache

This example shows how to cache the parsed template data.

**You can omit the templates parsing process and save template parsing time by using this function.**

**Using this function is recommended in production.**
4 changes: 3 additions & 1 deletion examples/load_templates_from_binary_data/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Load Templates from Binary Data

This example shows how to load templates from binary data.
This example shows how to load templates from binary data instead of template files.

You can run this example web application by executing the following command.

Expand All @@ -9,3 +9,5 @@ $ go run main.go asset.go
```

`asset.go` is created by executing `make_asset.sh`. This shell script executes [go-bindata](https://github.com/jteeuwen/go-bindata) and generates binary data from the Ace template.

**You can compile your web application into one binary file by using this function.**
1 change: 0 additions & 1 deletion examples/pass_pipeline_to_included_template/example.ace
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ html lang=en
{{range .Pets}}
= include pet .
{{end}}

0 comments on commit 0d9baa6

Please sign in to comment.