Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get server-side rendering working with the latest version #2

Merged
merged 5 commits into from
Jun 25, 2014

Conversation

wideopenspaces
Copy link
Owner

No description provided.

* enables the use of `respond_with(@object)` to render Handlebars
templates on the server side.
* opt-in by require/include. It is not loaded by default into
handlebars_assets.
…in order to be less susceptible to implementation changes.
Sprockets renders show.html.hbs to show.html, and then refuses to
include the file because it’s text/html.

So we work around it, and require that the file is named
{action}.js.hbs or {action}.jst.hbs
All server components are in the HandlebarsAssets::Server namespace and
are not loaded by default.

`require ‘handlebars_assets/server` will activate the server-side
rendering components.
wideopenspaces added a commit that referenced this pull request Jun 25, 2014
Get server-side rendering working with the latest version
@wideopenspaces wideopenspaces merged commit dd8c17c into master Jun 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant