Mitchell Hanberg
f4dd5d70d7
Tags module documentation
2019-05-11 22:48:33 -04:00
Mitchell Hanberg
c80a858b48
Extra non-tags macros to Dsl module
2019-05-11 12:49:34 -04:00
Mitchell Hanberg
71e6c91c8f
Extract Form module and rename Html module to Tags
2019-05-10 15:56:09 -04:00
Mitchell Hanberg
80fadb1b15
Documentation for partial/1
2019-05-10 15:28:13 -04:00
Mitchell Hanberg
02e9971ef5
Don't generate math
macro
2019-05-10 15:27:59 -04:00
Mitchell Hanberg
c8eb8d48d4
Remove javascript macro
...
Javascript should be written like so
```
script """
console.log("hi");
"""
```
2019-05-10 15:13:57 -04:00
Mitchell Hanberg
15ac084aed
text/1 docs
2019-05-10 15:13:04 -04:00
Mitchell Hanberg
06cbdd80ff
form_for and text_input macros
2019-05-10 15:06:03 -04:00
Mitchell Hanberg
083ff0682e
Don't create an svg macro
2019-05-10 15:04:40 -04:00
Mitchell Hanberg
f65b11362c
Extra util functions to their own module
2019-05-08 22:26:19 -04:00
Mitchell Hanberg
db17577bb5
Document void and nonvoid element macros
...
The mix task will fetch the element documentation from MDN for each
element and include that in the documentation.
The main documentation for these macros will be in the moduledoc
2019-05-08 22:09:14 -04:00
Mitchell Hanberg
83b99d8a8a
Document htm macro
2019-05-08 22:07:23 -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
6c6bd8dd3b
Phoenix template engine
2019-04-28 22:25:57 -04:00
Mitchell Hanberg
f62abac8c5
dont import HTML.link as it conflicts with the link tag
2019-04-28 20:50:24 -04:00
Mitchell Hanberg
72db6378c8
Fix runtime attrs for void elements
2019-04-28 20:08:26 -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
3e3d17c1b9
add html nonvoid element
2019-04-15 18:36:36 -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