Giter VIP home page Giter VIP logo

Comments (4)

indirect avatar indirect commented on September 28, 2024

that's not how this engine works, as far as I know. sounds like a good opportunity for a pull request, maybe? :)

On Mon, Mar 3, 2014 at 6:02 AM, ☃ pitr [email protected] wrote:

It doesn't seem that assets under app/assets/javascripts/ are compiled by haml.

There's a gem angular-rails-templates that takes files like app/assets/javascript/templates/settings.html and converts them to JS files that insert HTML template into angular's template cache. My understanding is that we should be able to name files template.html.haml, which would be processed by HAML first to generate HTML, then by angular-rails-templates to generate JS. This doesn't seem to work and the behaviour is very odd. Please see pitr/angular-rails-templates#18 for more info

Reply to this email directly or view it on GitHub:
#67

from haml-rails.

pitr avatar pitr commented on September 28, 2024

I thought that's how sprockets works

EDIT: or rails magical extension naming

from haml-rails.

indirect avatar indirect commented on September 28, 2024

Sprockets doesn’t know about Angular’s template cache, so that gem must be doing something special. Maybe you can copy whatever special thing that is into this gem if you want that.

On Mar 3, 2014, at 11:48 AM, ☃ pitr [email protected] wrote:

I thought that's how sprockets works


Reply to this email directly or view it on GitHub.

from haml-rails.

pitr avatar pitr commented on September 28, 2024

All we are doing is registering engine with sprockets which extends from Tilt::Template

from haml-rails.

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.