Skip to content

Instantly share code, notes, and snippets.

@somebee
Last active January 7, 2016 12:28
Show Gist options
  • Save somebee/1780e1ddcc26af847cca to your computer and use it in GitHub Desktop.
Save somebee/1780e1ddcc26af847cca to your computer and use it in GitHub Desktop.
Caching subviews with ref
tag container
def build
schedule
super
def render
<self>
<good>
<bad>
tag bad
def header
<div.header> 'not cached'
def render
<self> header
tag good
def header
<div@header> 'cached'
def render
<self> header
<container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment