Commit graph

10 commits

Author SHA1 Message Date
FloatingGhost 1b1585657f fix tests 2023-08-06 18:12:51 +01:00
FloatingGhost 66735c51ba always use tight spacing 2022-08-18 10:04:30 +01:00
Mitchell Hanberg f942817994
Utilize the EEx Engine instead of creating an EEx string (#177) 2022-04-19 23:56:46 -04:00
Mitchell Hanberg c965048f40
Better whitespace handling and control (#145)
* Fine tune whitespace

The EEx outut now emits more human-readable and predictable formatting.
This includes proper indenting, at least for each "root" template.

* Internal whitespace control

You can now use a bang version of any nonvoid tag to emit the markup
witout the internal whitespace. This means that there will not be a
newline emitted after the opening tag and before the closing tag.
2021-08-29 17:45:07 -04:00
Mitchell Hanberg 540692f7cd Void elements can be compiled with no attrs 2021-06-03 23:13:06 -04:00
Mitchell Hanberg 074241be4e Rename Temple.EEx to Temple.Generator 2021-04-11 17:27:02 -04:00
Mitchell Hanberg 07a1d5d451 Rename ast properties to align with given ast
The properties were either not needed at all, or were named back when
there was only one node type. now that each node is it's own struct,
they really don't need to share any common properties.
2021-04-10 11:08:06 -04:00
Mitchell Hanberg d40ff3e0b1 Allow components to be used with inline blocks
Fixes #116
2021-04-09 00:28:52 -04:00
Mitchell Hanberg fe3aed5df7 Some cleanup 2021-04-09 00:16:30 -04:00
Mitchell Hanberg b35b9b6d91 Rename a dir and shrink the test matrix 2021-04-09 00:16:30 -04:00
Renamed from lib/temple/parsers/nonvoid_elements_aliases.ex (Browse further)