Mitchell Hanberg
3993c798c0
Join markup with a new line
...
Text nodes separated by new lines still show whitespace when rendered,
so we should maintain user specified new lines.
Closes #59
Closes #60
2020-04-14 10:40:05 -04:00
Mitchell Hanberg
1093a4d602
Rename props
to assigns
...
This helps stay consistent with the Phoenix nomenclature.
2020-04-14 10:40:01 -04:00
zimt28
fa41e73bb0
Add @props access to components ( #66 )
...
* Add @props access to components
* Document `@props` assign
2020-04-14 10:40:00 -04:00
Mitchell Hanberg
916a9469d6
Remove mdn docs
...
They became broken at some point, and are probably not too useful
anyway. We can bring them back in the future.
2020-04-14 10:39:58 -04:00
Mitchell Hanberg
7376ce5d34
Bump v0.4.4
2020-04-14 10:39:47 -04:00
Michał Łępicki
997b62b9f4
Remove unnecessary dependency on Plug ( #61 )
...
The plug dependency is not needed since Phoenix provides it.
2020-03-19 11:02:08 -04:00
GarlandCrow
7d1e436ac6
Update README with Phoenix live-reload config change ( #57 )
...
Co-authored-by: Mitchell Hanberg <mitch@mitchellhanberg.com>
2020-03-18 19:35:34 -04:00
dependabot-preview[bot]
73c3c45f27
Bump phoenix from 1.4.10 to 1.4.15
...
Bumps [phoenix](https://github.com/phoenixframework/phoenix ) from 1.4.10 to 1.4.15.
- [Release notes](https://github.com/phoenixframework/phoenix/releases )
- [Changelog](https://github.com/phoenixframework/phoenix/blob/v1.4.15/CHANGELOG.md )
- [Commits](https://github.com/phoenixframework/phoenix/compare/v1.4.10...v1.4.15 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-09 15:31:18 -04:00
dependabot-preview[bot]
a9fc07bcc5
Bump html_sanitize_ex from 1.3.0 to 1.4.0 ( #37 )
...
Bumps [html_sanitize_ex](https://github.com/rrrene/html_sanitize_ex ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/rrrene/html_sanitize_ex/releases )
- [Changelog](https://github.com/rrrene/html_sanitize_ex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rrrene/html_sanitize_ex/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-07 23:53:11 -05:00
Mitchell Hanberg
fb0359fa8c
Bump v0.4.3
2020-01-07 23:49:51 -05:00
Adam Rutkowski
3e3f4480fa
Ensure optional Phoenix is optional ( #39 )
2020-01-07 23:44:39 -05:00
dependabot-preview[bot]
9aea707fcc
Bump floki from 0.23.0 to 0.23.1 ( #36 )
...
Bumps [floki](https://github.com/philss/floki ) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/philss/floki/releases )
- [Changelog](https://github.com/philss/floki/blob/master/CHANGELOG.md )
- [Commits](https://github.com/philss/floki/compare/v0.23.0...v0.23.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 13:33:11 -05:00
Mitchell Hanberg
71bddc6346
Bump v0.4.2
2019-11-22 22:55:57 -05:00
Mitchell Hanberg
d8e17c54bb
Fix readme CI badge
2019-11-22 22:52:16 -05:00
Mitchell Hanberg
1d71c27a34
Handle HTML fragments in temple.convert task ( #35 )
...
* Handle HTML fragments in temple.convert task
* Add GH CI action
* Remove travis config
2019-11-22 22:48:20 -05:00
Mitchell Hanberg
d2e8a45094
Bump v0.4.1
2019-09-25 19:23:00 -04:00
Shritesh
d1fceaf75f
Don't depend on floki in prod ( #28 )
...
* Set @preferred_cli_env for Convert Task to :dev
* Set floki dep to :dev and :test, bump nimble_parsec
2019-09-25 15:16:56 -04:00
dependabot-preview[bot]
0863d19e7d
Bump ecto from 3.2.0 to 3.2.1 ( #27 )
...
Bumps [ecto](https://github.com/elixir-ecto/ecto ) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/elixir-ecto/ecto/releases )
- [Changelog](https://github.com/elixir-ecto/ecto/blob/v3.2.1/CHANGELOG.md )
- [Commits](https://github.com/elixir-ecto/ecto/compare/v3.2.0...v3.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-19 21:20:40 -04:00
Mitchell Hanberg
86f5656b46
Bump v0.4.0
2019-09-13 21:38:53 -04:00
Mitchell Hanberg
5acd6fc079
Svg module ( #25 )
...
* Temple.Svg
- scopes update_mdn_task to the temple namespace
- introduces new temple.convert mix task to convert plain HTML and SVG to
Temple syntax
* Rename Temple.Tags to Temple.Html
* Remove hackney
I'm not sure why it was even in there ¯\_(ツ)_/¯
* Update floki
* Document temple.convert in README
2019-09-13 21:36:16 -04:00
dependabot-preview[bot]
50c3bd93eb
Bump phoenix from 1.4.9 to 1.4.10 ( #23 )
...
Bumps [phoenix](https://github.com/phoenixframework/phoenix ) from 1.4.9 to 1.4.10.
- [Release notes](https://github.com/phoenixframework/phoenix/releases )
- [Changelog](https://github.com/phoenixframework/phoenix/blob/v1.4.10/CHANGELOG.md )
- [Commits](https://github.com/phoenixframework/phoenix/compare/v1.4.9...v1.4.10 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 15:46:24 -04:00
dependabot-preview[bot]
8d4d55ad10
Bump ecto from 3.1.7 to 3.2.0 ( #24 )
...
Bumps [ecto](https://github.com/elixir-ecto/ecto ) from 3.1.7 to 3.2.0.
- [Release notes](https://github.com/elixir-ecto/ecto/releases )
- [Changelog](https://github.com/elixir-ecto/ecto/blob/master/CHANGELOG.md )
- [Commits](https://github.com/elixir-ecto/ecto/compare/v3.1.7...v3.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 09:50:44 -04:00
Alexey Novoselov
cd434a246e
Edit links to latest package version ( #22 )
...
Links without version numbers
2019-09-02 06:26:40 -07:00
dependabot-preview[bot]
eab538c1ca
Bump ex_doc from 0.21.1 to 0.21.2 ( #21 )
...
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc ) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases )
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.21.1...v0.21.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 07:36:18 -04:00
Mitchell Hanberg
c5ee135cbe
Remove dialyzer from travis
2019-08-27 22:27:50 -04:00
Mitchell Hanberg
b01ec03362
Remove dialyzer
...
Temple is mostly macros ¯\_(ツ)_/¯. All dialyzer was doing was taking
forever on CI.
2019-08-27 22:22:56 -04:00
Mitchell Hanberg
9e4f56dd95
Bump v0.3.1
2019-08-27 22:09:22 -04:00
Mitchell Hanberg
ac56c3cc81
Improve tests for submit, phx_button, and phx_label
2019-08-27 21:57:41 -04:00
Shritesh
dbb26a6d58
Fix phx_link, phx_button, submit, phx_label markup ( #20 )
...
The tests for phx_link were not testing the correct behavior, which is how this slipped by.
2019-08-27 21:51:10 -04:00
Mitchell Hanberg
26bd319420
Add slack badge to the readme
2019-08-26 15:31:48 -04:00
Mitchell Hanberg
451f5d4859
Bump v0.3.0
2019-08-20 23:32:14 -04:00
Mitchell Hanberg
3a52b2d7e7
Update changelog
2019-08-20 23:17:46 -04:00
Mitchell Hanberg
74e7f3a25e
defelement macro
...
- add location: :keep to all calls to quote
2019-08-20 23:13:10 -04:00
Mitchell Hanberg
b0a7f9da11
Extract helper module for creating elements
...
Also removes illegal `html` macros, which allows use to only define one
clause and remove some tests.
2019-08-20 21:01:07 -04:00
AJ Harrington
f3aabf8f59
Updated html macro to put a <!DOCTYPE html> before the <html /> tag ( #18 )
...
Removed html from the list of nonvoid tags. Implemented specifically
so the doctype declaration can be put in. Not sure if this or adding
an if block to check the tag was a better solution.
Added tests for the html macro to the tests since it would no longer
show up in nonvoid_elements list.
mix test passes
2019-08-19 19:53:17 -04:00
Mitchell Hanberg
dba45074d2
Update issue templates
2019-08-17 13:44:49 -04:00
dependabot-preview[bot]
617e8e4e8f
Bump plug from 1.8.2 to 1.8.3 ( #9 )
...
Bumps [plug](https://github.com/elixir-plug/plug ) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/elixir-plug/plug/releases )
- [Changelog](https://github.com/elixir-plug/plug/blob/master/CHANGELOG.md )
- [Commits](https://github.com/elixir-plug/plug/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-17 10:00:49 -04:00
Mitchell Hanberg
a20900a281
Bump v0.2.0
2019-08-13 18:28:28 -04:00
Shritesh Bhattarai
43f10cd0de
Add radio_button ( #14 )
2019-08-13 11:04:14 -04:00
Mitchell Hanberg
408dfdc6c7
Bump v0.1.2
2019-08-10 01:10:45 -04:00
Mitchell Hanberg
eb0fde6e83
Don't recursively call generated component macros ( #12 )
...
Recursively calling the macros works fine if you `import` the whole
module wherever you are using your components, but not if you `require`
the module.
This is because importing brings in the all the macros into the callers
namespace, which allows them to be called just by the macro name. When
you `require` the module, it will look for the generated 2-arity macro
in the callers namespace, which probably doesn't exist.
We get around this by not recursively calling them and avoiding the
problem all togther. A few utility functions solves the original issue
of wanting to DRY the file.
2019-08-10 01:09:24 -04:00
Mitchell Hanberg
030e0f9d3c
Bump v0.1.1
2019-08-08 09:01:28 -04:00
Mitchell Hanberg
84a59a3e80
Merge pull request #11 from mhanberg/escape-single-arity-content-tags
...
Escape content passed to single arity tags
2019-08-07 22:27:06 -04:00
Mitchell Hanberg
0521aa2aad
Escape content passed to single arity tags
2019-08-07 21:08:16 -04:00
Mitchell Hanberg
465479d57f
Merge pull request #7 from mhanberg/dependabot/hex/ex_doc-0.21.1
...
Bump ex_doc from 0.21.0 to 0.21.1
2019-07-22 07:32:05 -04:00
dependabot-preview[bot]
46d02646de
Bump ex_doc from 0.21.0 to 0.21.1
...
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc ) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/elixir-lang/ex_doc/releases )
- [Changelog](https://github.com/elixir-lang/ex_doc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/elixir-lang/ex_doc/compare/v0.21.0...v0.21.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-22 11:11:41 +00:00
Mitchell Hanberg
cb1715080f
Merge pull request #4 from mhanberg/dependabot/hex/ecto-3.1.7
...
Bump ecto from 3.1.4 to 3.1.7
2019-07-19 21:11:27 -04:00
dependabot-preview[bot]
e359cdb47c
Bump ecto from 3.1.4 to 3.1.7
...
Bumps [ecto](https://github.com/elixir-ecto/ecto ) from 3.1.4 to 3.1.7.
- [Release notes](https://github.com/elixir-ecto/ecto/releases )
- [Changelog](https://github.com/elixir-ecto/ecto/blob/v3.1.7/CHANGELOG.md )
- [Commits](https://github.com/elixir-ecto/ecto/compare/v3.1.4...v3.1.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-20 00:00:32 +00:00
Mitchell Hanberg
847f2d0ad7
Merge pull request #1 from mhanberg/dependabot/hex/phoenix-1.4.9
...
Bump phoenix from 1.4.3 to 1.4.9
2019-07-19 19:59:05 -04:00
Mitchell Hanberg
1595a59dc0
Merge pull request #6 from mhanberg/dependabot/hex/ex_doc-0.21.0
...
Bump ex_doc from 0.20.2 to 0.21.0
2019-07-18 07:47:12 -04:00