-
-
Save mateusvahl/6a0ee87b61b8a5f38ce41770d08a8bb4 to your computer and use it in GitHub Desktop.
Handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Writes a new render engine: | |
{(yields}} can be implemented with helpers. | |
{{content_for}} and {{output_for}} can be implemented with helpers and state. | |
{{docs}} can be implemented with helpers+state+blocks, also use handlebars to output default cars in doc. | |
{{metadata}} can be implemented with helpers in a before render step. | |
{{lorem 1000}} writes 1000 lines of lorem ipsum | |
final step: check for patterns not used |
Project menu integration can be done with handlebars using the methods bellow
Unless
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow pass component as argument and be rendered:
{{my-table block="atoms/time"}}
->
{{component {{block}} }}
Outputs atoms/time