Skip to content

Commit c7746cb

Browse files
committed
prep for v0.6.2
1 parent fc74dd5 commit c7746cb

14 files changed

+28
-15
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION=v0.6.0
1+
VERSION=v0.6.2

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ A [Haml](http://haml.info/) and [Slim](https://slim-template.github.io/) templat
3939

4040
## Features
4141
- Full [Haml](http://haml.info/) language support
42+
- Full [Slim](https://slim-lang.com/) language support
4243
- Templates are compiled to type-safe Go and not parsed at runtime
4344
- Multiple templates per file
4445
- Mix Go and templates together in the same file
@@ -139,12 +140,13 @@ Which would serve the following HTML:
139140
- [x] Inline Interpolation (`#{value}`)
140141
- [x] Inlining Code (`- code`)
141142
- [x] Rendering Code (`= code`, `== code`)
142-
- [x] Filters (`:plain`, ...) [(more info)](#filters)
143+
- [x] Filters (`:javascript`, `:css`) [(more info)](#filters)
143144
- [x] Long Statement wrapping (`\`), (`,`)]
145+
- [x] Whitespace Addition (`tag<` `tag>`) [(more info)](#whitespace-addition)
144146

145147
### Unsupported Slim Features
146148

147-
- [ ] Whitespace Addition (`tag<` `tag>`)
149+
- [ ] Probably something I've missed, please raise an issue if you find something missing.
148150

149151
## GoHT CLI
150152

@@ -266,6 +268,9 @@ func main() {
266268
}
267269
}
268270
```
271+
272+
**More Examples!**
273+
269274
There are a number of examples showing various Haml and GoHT features in the [examples](examples) directory.
270275

271276
### A big nod to Templ
@@ -576,6 +581,14 @@ GoHT supports the removal of whitespace between tags. This is done by adding a `
576581

577582
Both can be used together to remove whitespace both inside and outside a tag; the order they're in does not matter.
578583

584+
### Whitespace Addition
585+
**Slim Only**
586+
587+
GoHT supports the addition of whitespace between tags. This is done by adding a `<` or `>` to the end of the tag.
588+
589+
- `<` will add whitespace before the tag
590+
- `>` will add whitespace after the tag
591+
579592
### Template nesting
580593
The biggest departure from Haml is how templates can be combined. When working Haml you could use `= render :partial_name` or `= haml :partial_name` to render a partial. The `render` and `haml` functions are not available in GoHT, instead you can use the `@render` directive.
581594
```haml

compiler/testdata/attributes.goht.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/testdata/comments.goht.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/testdata/conditionals.goht.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/testdata/elements.goht.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/testdata/filters.goht.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/testdata/imports.goht.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/testdata/interpolation.goht.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/testdata/newlines.goht.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)