Last active
December 12, 2015 07:49
-
-
Save DavertMik/4739871 to your computer and use it in GitHub Desktop.
BatmanJS render into another container
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
class YourApp.PostsController extends BatmanController | |
index: -> | |
@render | |
into: 'sidebar' # data-yield="sidebar" required | |
html: "Thanks to our sponsors!" # you can render plain html | |
# skip html option if you want to render a template |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment