Skip to content

Instantly share code, notes, and snippets.

@mateusvahl
Created June 1, 2016 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mateusvahl/6a0ee87b61b8a5f38ce41770d08a8bb4 to your computer and use it in GitHub Desktop.
Save mateusvahl/6a0ee87b61b8a5f38ce41770d08a8bb4 to your computer and use it in GitHub Desktop.
Handlebars
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
@mateusvahl
Copy link
Author

Allow pass component as argument and be rendered:
{{my-table block="atoms/time"}}
->
{{component {{block}} }}
Outputs atoms/time

@mateusvahl
Copy link
Author

Project menu integration can be done with handlebars using the methods bellow

@mateusvahl
Copy link
Author

Unless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment