Comments (4)
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 filestemplate.html.haml
, which would be processed by HAML first to generate HTML, then byangular-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 infoReply to this email directly or view it on GitHub:
#67
from haml-rails.
I thought that's how sprockets
works
EDIT: or rails magical extension naming
from haml-rails.
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.
All we are doing is registering engine with sprockets which extends from Tilt::Template
from haml-rails.
Related Issues (20)
- Relax required_rubygems_version? HOT 11
- ActionView::TemplateError Undefined method 'html_tag' for rails 3.2.18 HOT 2
- Deprecation warning on Rails 6.0.0.rc1 HOT 3
- Support Hamlit (2x faster haml implementation) HOT 1
- Update README and gemspec to indicate Rails 5 requirement
- Using :erb filter multiple times repeats all previous :erb filter content. HOT 1
- .text.haml files have html escaped content HOT 1
- ActiveSupport::SafeBuffer from .html_safe behaves weirdly
- clarify in the readme the significans of ActionView::DependencyTracker.register_tracker :haml
- [Feature] Support for annotate_template_file_names HOT 7
- 【依頼】ChatSpace挙動確認 HOT 2
- content_for fails to sanitize input when using HAML
- uninitialized constant Haml::Rails::Railtie::SourceAnnotationExtractor (NameError) HOT 1
- Add HAML to watcher for Rails 7 apps using Tailwind? HOT 2
- Rails 7.0.1 + Turbo, scaffold generator, app/views/RESSOURCE/index.html.haml
- Running tests against version 2.1.0 causes errors HOT 2
- Version 2.1 not including converters? HOT 3
- options[:format] = :xhtml not working
- Rails 7.0.4 + ActionText + Haml-Rails 2.1
- Issue with Ruby 3.2 + Rails 7 + haml-rails 2.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haml-rails.