Commit graph

101 commits

Author SHA1 Message Date
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
dependabot-preview[bot]
9e0a31df25
Bump ex_doc from 0.20.2 to 0.21.0
Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.20.2 to 0.21.0.
- [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.20.2...v0.21.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-17 11:35:41 +00:00
dependabot-preview[bot]
51c9a674fe
Bump phoenix from 1.4.3 to 1.4.9
Bumps [phoenix](https://github.com/phoenixframework/phoenix) from 1.4.3 to 1.4.9.
- [Release notes](https://github.com/phoenixframework/phoenix/releases)
- [Changelog](https://github.com/phoenixframework/phoenix/blob/v1.4.9/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix/compare/v1.4.3...v1.4.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-12 19:49:18 +00:00
Mitchell Hanberg
e085c408f1
Merge pull request #2 from mhanberg/dependabot/hex/phoenix_html-2.13.3
Bump phoenix_html from 2.13.2 to 2.13.3
2019-07-12 15:47:45 -04:00
Mitchell Hanberg
c91d742ba7 Explicitly import Temple instead of using __MODULE__ 2019-07-12 15:46:45 -04:00
Mitchell Hanberg
7ad4b0e941 Rename Temple.htm to Temple.temple 2019-07-08 22:29:41 -04:00
Mitchell Hanberg
006535ec44 Add documentation about the formatter to the README 2019-07-08 20:06:01 -04:00
Mitchell Hanberg
907a64451b Update name of text_area macro in .formatter.exs 2019-07-07 22:31:09 -04:00
Mitchell Hanberg
d210d3bff5 Extract safe result from hidden fields within inputs_for/4
Also switches to using `with` instead of `lexical_scoping` because it is
more idiomatic.
2019-07-07 22:26:32 -04:00
dependabot-preview[bot]
beb5f1f8fa
Bump phoenix_html from 2.13.2 to 2.13.3
Bumps [phoenix_html](https://github.com/phoenixframework/phoenix_html) from 2.13.2 to 2.13.3.
- [Release notes](https://github.com/phoenixframework/phoenix_html/releases)
- [Changelog](https://github.com/phoenixframework/phoenix_html/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phoenixframework/phoenix_html/compare/v2.13.2...v2.13.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-08 01:36:11 +00:00
Mitchell Hanberg
2929e6c7c3 Remove IO.inspect 2019-07-05 22:36:59 -04:00
Mitchell Hanberg
eabe9cdd9b Fix collision of Temple.textarea and Phoenix.HTML.Form.textarea 2019-07-04 11:21:54 -04:00
Mitchell Hanberg
af2995a659 Export temple's locals_without_parens 2019-07-04 10:38:51 -04:00
Mitchell Hanberg
4715c77504 Logo 2019-07-04 00:16:37 -04:00
Mitchell Hanberg
8daf85fdb3 Allow defcomponent to work with runtime values for assigns
Also allows tags and defcomponents to accept maps in addition to keyword
lists
2019-07-04 00:16:29 -04:00
Mitchell Hanberg
6c8246fe89 Touching up the docs 2019-07-03 22:09:39 -04:00
Mitchell Hanberg
cf0707f8aa Fix mdn docs 2019-07-03 21:42:30 -04:00
Mitchell Hanberg
03e35f858c Finishing touches 2019-07-03 20:57:19 -04:00
Mitchell Hanberg
6dece3165f Add description to mix.exs 2019-07-03 19:52:40 -04:00