I am using sammy for a web application that needs to render templates stored inline in the page. I am using a script tag to contain the markup, which is haml.

Is there a good, idiomatic way to render templates that are not loaded via ajax request? I have a solution, but I am not happy with it. $('#start\_haml') is the script element containing the markup and $('#sammy\_main') is the container to render into.

```
app.get '#/', (context) ->

context.load($('#start_haml')).then((data) ->
  context.interpolate(data, {helpers: view_helpers})
).replace('#sammy_main')

```