Comments (2)
Thanks for the report. Looks like haml
ships with it's own tilt handler now (Haml::Template
). Not sure why the handler that ships with Tilt is being used, unless you are referencing Tilt::HamlTemplate directly.
I'll submit a pull request to fix the warning and one spec failure.
from tilt.
Thank you for quick reply!
I dig into this problem a little, and I found something.
My source code was like this:
require 'tilt'
Tilt.new('sample.haml')
Running the above code will display Haml::TempleEngine: Option :line is invalid
warning.
Then I replaced require 'tilt'
with require 'haml'
, the warning disappeared.
require 'haml'
Tilt.new('sample.haml')
It seems to be due to the different classes of instances returned by Tilt.new
.
$ touch sample.haml
$ ruby -r tilt -e 'p Tilt.new("sample.haml").class'
Haml::TempleEngine: Option :line is invalid
Tilt::HamlTemplate
$ ruby -r haml -e 'p Tilt.new("sample.haml").class'
Haml::Template
from tilt.
Related Issues (20)
- SyntaxError when rendering ERB `<%=` with a block HOT 3
- Eliminate dependency on deprecated 'sass' Gem HOT 6
- HAML SASS Directive fails when passed an 8-digit hex value HOT 2
- Push tag v2.0.9 HOT 1
- How do you pass Redcarpet render options through Tilt? HOT 2
- Missing extensions for markdown when using Redcarpet HOT 4
- Pug support HOT 3
- [2.0.10 Regression] Methods defined in a template can't be used later in the template HOT 22
- Slim fails since tilt 2.0.10 HOT 1
- Uninitialized constant problem in Heroku / Sinatra HOT 3
- Test failure: TestSlimEmbeddedEngines#test_render_with_markdown HOT 1
- CVE-2020-14001 Kramdown gem version HOT 8
- Opal support outdated HOT 2
- Not support all options for CommonMarker HOT 1
- uninitialized constant Tilt::Dummy on special conditions HOT 1
- Trying to get in touch regarding a security issue HOT 2
- coffee-script is getting deprecated HOT 7
- Warnings when running tests with ruby 3.0 and 3.1 in Debian and Ubuntu HOT 2
- Can we have a Gem release of the current state of Tilt? HOT 3
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 tilt.