Skip to content

Instantly share code, notes, and snippets.

@DavertMik
Last active December 12, 2015 07:49
Show Gist options
  • Save DavertMik/4739871 to your computer and use it in GitHub Desktop.
Save DavertMik/4739871 to your computer and use it in GitHub Desktop.
BatmanJS render into another container
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