Commit graph

219 commits

Author SHA1 Message Date
Mitchell Hanberg
f942817994
Utilize the EEx Engine instead of creating an EEx string (#177) 2022-04-19 23:56:46 -04:00
dependabot[bot]
ece4cb8a26
Bump ex_doc from 0.24.2 to 0.28.3 (#174) 2022-03-23 08:44:44 -04:00
Mitchell Hanberg
ec484bcef6
Delete FUNDING.yml 2021-11-22 10:03:06 -05:00
dependabot[bot]
d8a19a20cc
Bump phoenix_live_view from 0.16.1 to 0.17.5 (#158)
Bumps [phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view) from 0.16.1 to 0.17.5.
- [Release notes](https://github.com/phoenixframework/phoenix_live_view/releases)
- [Changelog](https://github.com/phoenixframework/phoenix_live_view/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_live_view/compare/v0.16.1...v0.17.5)

---
updated-dependencies:
- dependency-name: phoenix_live_view
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-22 08:54:13 -05:00
Mitchell Hanberg
9b4dc26a5d Update elixir/erlang versions in CI workflow 2021-08-29 18:17:55 -04:00
Mitchell Hanberg
c6d29e592b Bump v0.8.0 2021-08-29 18:11:24 -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
87ddbaa6b5
Update README.md 2021-07-26 22:22:08 -04:00
Mitchell Hanberg
0715a514c5 Bump v0.7.0 2021-06-27 12:05:45 -04:00
Mitchell Hanberg
d9f00e5147
Class object syntax (#140)
* Class object syntax

Allows for conditionally setting classes on an element.

* Docs for class bindings
2021-06-27 12:04:19 -04:00
Mitchell Hanberg
9d05f74cdf
Properly emit boolean attributes (#139)
* Update some docs

* Properly emit boolean attributes.

* Account for quoted literals when compiling attributes

* Update changelog
2021-06-26 21:47:21 -04:00
Mitchell Hanberg
d307fe35de
Update dependabot.yml 2021-06-15 14:11:10 -04:00
dependabot-preview[bot]
68a1d5fdac
Upgrade to GitHub-native Dependabot (#123)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-06-15 14:10:26 -04:00
dependabot-preview[bot]
f79464dcde
Bump phoenix_live_view from 0.13.3 to 0.15.7 (#131)
Bumps [phoenix_live_view](https://github.com/phoenixframework/phoenix_live_view) from 0.13.3 to 0.15.7.
- [Release notes](https://github.com/phoenixframework/phoenix_live_view/releases)
- [Changelog](https://github.com/phoenixframework/phoenix_live_view/blob/v0.15.7/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_live_view/compare/v0.13.3...v0.15.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-06-15 14:08:06 -04:00
Mitchell Hanberg
fb5f0a99f4 Bump v0.6.2 2021-06-03 23:14:58 -04:00
Mitchell Hanberg
540692f7cd Void elements can be compiled with no attrs 2021-06-03 23:13:06 -04:00
Mitchell Hanberg
49ebe8c603 update readme 2021-05-26 10:11:08 -04:00
Mitchell Hanberg
006886fa5e Bump v0.6.1 2021-05-23 14:01:25 -04:00
Mitchell Hanberg
15a999d8f3 Only collect slots in the root of a component
slot definitions in a component instance can only exist in the root of
that component, with root being defined as the lexical scoping of the
slot still being the component it's defined in.

Fixes #126
2021-05-23 13:56:05 -04:00
Mitchell Hanberg
978df64ffe Update version in readme 2021-05-22 01:20:42 -04:00
Mitchell Hanberg
301963f06b Bump v0.6.0 2021-05-22 01:13:58 -04:00
Mitchell Hanberg
99de9ad137
Update README.md 2021-05-21 10:50:31 -04:00
Mitchell Hanberg
b2bd06d037 Add some docs 2021-05-13 21:28:15 -04:00
Mitchell Hanberg
3b00fedb27 update version in readme 2021-05-13 20:56:40 -04:00
Mitchell Hanberg
0b55cf1cec Bump v0.6.0-rc.1 2021-05-13 00:31:00 -04:00
Mitchell Hanberg
5150a93e38 emit live view compatible component and slot markup
- requires the development branch of live_view currently, if you are
  going to be using live view

ci

Docs

Raise minimum elixir version to 1.9

There is some bug in EEx that was fixed in 1.9 and I can't be bothered
to make it backwards compatible with the bug.

ugh

Remove commented out line
2021-05-13 00:21:43 -04:00
Mitchell Hanberg
73b6973a74 Boost minimum tested version to 1.9
Add erlang 22
2021-05-13 00:21:43 -04:00
Mitchell Hanberg
851f6415fe Slots!
Integration test for slots

Format integration test project

Hide slots assign in temple prefixed key

Won't compile temple related assigns when calling Utils.runtime_attrs

Update component docs with slots usage
2021-05-13 00:21:43 -04:00
Mitchell Hanberg
f7197ede4a Update readme with goals 2021-05-13 00:21:43 -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
Mitchell Hanberg
acf53760c3 Format a file 2021-04-09 00:16:30 -04:00
Mitchell Hanberg
7aba19a87d Update the setup elixir action for github action 2021-04-09 00:16:30 -04:00
Mitchell Hanberg
41f9b94d0f Hook the AST generation in to the temple macros
- Removes the old way
- Removes the ability to compact an element
2021-04-09 00:16:30 -04:00
Mitchell Hanberg
8bb4245761 Output AST to EEx 2021-04-09 00:16:30 -04:00
Mitchell Hanberg
4e9c7e95b4 Generate AST 2021-04-09 00:16:30 -04:00
Mitchell Hanberg
358b5ea4cc Start porting parsers to use AST 2021-04-09 00:16:30 -04:00
Mitchell Hanberg
9d6f7c176d Remove slack readme badge 2021-03-22 20:14:47 -04:00
Michel Belleville
6fe46cbb49
the alias goes in the view module (#107) 2021-01-20 18:03:41 -05:00
Mitchell Hanberg
8377a04ab3
Update README.md 2021-01-02 15:34:53 -05:00
Mitchell Hanberg
e97302149b rename default branch 2021-01-02 13:34:19 -05:00
Mitchell Hanberg
c35307cb66 ci: Bump min elixir version on ci for int. tests 2021-01-02 13:33:14 -05:00
Mitchell Hanberg
c4059b3a6e Bump v0.6.0-rc.0 2021-01-02 13:24:49 -05:00
Mitchell Hanberg
ced2f6ab66 feat: New Component API 2021-01-02 13:22:03 -05:00
Mitchell Hanberg
271567dc8f
Update ci.yml 2020-12-06 22:59:58 -05:00
Mitchell Hanberg
bde40756ee
Update ci.yml 2020-12-06 22:58:10 -05:00
Mitchell Hanberg
b55708099e
Update FUNDING.yml 2020-12-06 22:53:18 -05:00