You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+8
Original file line number
Diff line number
Diff line change
@@ -464,6 +464,14 @@ Only the following Haml filters are supported:
464
464
-`:javascript`
465
465
-`:css`
466
466
467
+
### Whitespace Removal
468
+
GoHT supports the removal of whitespace between tags. This is done by adding a `>` or `<` to the end of the tag.
469
+
470
+
-`>` will remove all whitespace between the tag and its parent or siblings.
471
+
-`<` will remove all whitespace between the tag and its first and last child.
472
+
473
+
Both can be used together to remove whitespace both inside and outside a tag; the order they're in does not matter.
474
+
467
475
### Template nesting
468
476
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.
0 commit comments