Commit graph

21 commits

Author SHA1 Message Date
Mitchell Hanberg
a372a64858 Fix block style phx_link macros 2019-07-01 00:25:13 -04:00
Mitchell Hanberg
52a27c3dc2 Fix phx_link, phx_button block style implementation 2019-06-30 14:28:44 -04:00
Mitchell Hanberg
1cb522d440 Wrap Phoenix.HTML.Link module 2019-06-29 18:14:05 -04:00
Mitchell Hanberg
6b55fc7665 Implement remaining from helpers 2019-06-01 00:02:49 -04:00
Mitchell Hanberg
3a435b1727 Move form tests to the proper test file 2019-05-11 23:30:16 -04:00
Mitchell Hanberg
c4ebf81b6b Move component tests to the proper test file 2019-05-11 23:28:26 -04:00
Mitchell Hanberg
4cdc0de71b extract test component module to a support file 2019-05-11 23:25:57 -04:00
Mitchell Hanberg
72cd90cef3 Utils tests 2019-05-11 23:10:55 -04:00
Mitchell Hanberg
71e6c91c8f Extract Form module and rename Html module to Tags 2019-05-10 15:56:09 -04:00
Mitchell Hanberg
06cbdd80ff form_for and text_input macros 2019-05-10 15:06:03 -04:00
Mitchell Hanberg
0ad883dfcb Add formatter config for locals_without_parens 2019-05-08 03:47:43 -04:00
Mitchell Hanberg
d81029c9be Enable passing content or attrs as variables
Before, the guards in the macro definitions would only work for content
or attributes that were passed in as literals.
2019-05-08 03:31:13 -04:00
Mitchell Hanberg
d6ed780949 Allow passing content as first arg instead of block 2019-04-27 11:46:02 -04:00
Mitchell Hanberg
53ede43000 Compile attrs at runtime to enable interpolation 2019-04-27 11:45:20 -04:00
Mitchell Hanberg
48c5eacf25 Rename component to defcomponent 2019-04-27 11:44:08 -04:00
Mitchell Hanberg
e1c54ff09d Output htm output as raw
This should probably be moved to the phoenix engine once that is started
2019-04-27 11:24:17 -04:00
Mitchell Hanberg
cada669071 Allow Components to take props + other stuff
- Don't allow htm to take safe option
- Always escape calls to `text`
2019-04-26 16:59:43 -04:00
Mitchell Hanberg
8e1ae6cf11 Rename deftag to component 2019-04-15 18:37:13 -04:00
Mitchell Hanberg
2727d346b6 Clean up deftag generated macros 2019-04-14 22:36:16 -04:00
Mitchell Hanberg
85d6b8586f Fix using macro for entry module 2019-04-14 22:35:42 -04:00
Mitchell Hanberg
115f148864 Initial commit 2019-04-14 21:44:39 -04:00