Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example: Inline Partial with Helpers / Variables #139

Open
jtfairbank opened this issue Jan 17, 2016 · 0 comments
Open

Example: Inline Partial with Helpers / Variables #139

jtfairbank opened this issue Jan 17, 2016 · 0 comments

Comments

@jtfairbank
Copy link

The documentation for inline partials (at the bottom of the partials page) doesn't provide enough context for their usage.

I can't tell if the inline partials will be executed in the context they are defined in (like partial blocks) or in the context of the partial that calls them.

I also can't tell how to use them in a complex manner, such as using an #if block to choose between two inline partials to execute, using an #each block within an inline partial, and using an #each block

I think 1 or more examples with these features and the following "file" code would be super helpful:

  • the template file that defines the inline partials and calls the partial which will execute them (the top of your current example)
  • the partial file that executes itself and calls the inline partials (layout in your current example)
  • the rendered html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant