You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a helper similar to sinatra-contrib's content_for method and have a quick question: how would you stash the content from a block evaluating inside of a mote template into another buffer? In other words, capture the content in the block and display it somewhere else but not where the block resides.
Hello!
I'm trying to create a helper similar to sinatra-contrib's content_for method and have a quick question: how would you stash the content from a block evaluating inside of a mote template into another buffer? In other words, capture the content in the block and display it somewhere else but not where the block resides.
I have the following so far:
Which gets called like this:
And output like this:
I'd like to capture that
<h1>
block and display it elsewhere, removing it from that location. Currently, it shows in both places.Thanks for your help!
The text was updated successfully, but these errors were encountered: