GithubHelp home page GithubHelp logo

Comments (9)

noiseunion avatar noiseunion commented on May 28, 2024

+1

from handlebars_assets.

leshill avatar leshill commented on May 28, 2024

Hi @grigio, @noiseunion,

The template is available to your JavaScript as an entry of the HandlebarsTemplates object (or whatever you have configured for your namespace).

So I am a bit confused by this since the template_include_tag just adds the template to the page as a script tag (at least that is what I think it does :) What am I missing?

from handlebars_assets.

noiseunion avatar noiseunion commented on May 28, 2024

I looking for something similar to this: https://github.com/railsware/sht_rails.

We have been looking at using the Handlebars_assets gem in conjunction with the SHT gem, however it would be nice to just have a one-stop-shop on this issue...and I like the way Handlebars_Assets works with regards to what it does, would be really nice to be able to use the same template both client and server-side in a rails app.

from handlebars_assets.

leshill avatar leshill commented on May 28, 2024

Hi @noiseunion,

Interesting. So you want to render the Handlebars template inside a rails view on the server OR as a JavaScript template in the browser?

Let me think about it, I might have some time this week.

from handlebars_assets.

noiseunion avatar noiseunion commented on May 28, 2024

yeah that would be the goal. :) Would eliminate the need for duplicating a template which would be awesome!

from handlebars_assets.

leshill avatar leshill commented on May 28, 2024

Hi @grigio, @noiseunion,

Do either of you want to take a stab at this? I am still swamped.

from handlebars_assets.

noiseunion avatar noiseunion commented on May 28, 2024

Sorry for the delay in getting back. I would be willing to give it a whirl when I get a chance. Just not sure when that will be yet.

from handlebars_assets.

variousauthors avatar variousauthors commented on May 28, 2024

Oh man! I want this too.

from handlebars_assets.

activist avatar activist commented on May 28, 2024

+1

from handlebars_assets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.