Comments (4)
Your code works well for me. Have you tried updating the gems?
from sinatra.
Yeah. I can't seem to recreate that on any ruby version.
from sinatra.
Closing. Let me know if this continues to be an issue.
from sinatra.
This will happen if you name your sinatra app "haml.rb"... it tries to include the file in the current directory before the actual Haml library from the gem... but you haven't defined "haml" in there.
The fix, of course, is to re-name your sinatra app to "haml_test.rb" or something...
from sinatra.
Related Issues (20)
- Sinatra Namespace and sinatra.route HOT 2
- Remove use of `TemplateCache` HOT 3
- Release 3.1.0
- Disable `session_hijacking` by default HOT 2
- Add `base64` dependency HOT 3
- XSS via Host Header Injection HOT 5
- Remove code for encrypted cookies in favour of rack-session HOT 5
- Spam issue, ignore
- Sinatra::IndifferentHash does not support initialization with any hash or key-value pair list HOT 9
- Remove the `IndifferentHash` initializer HOT 3
- Release 3.2.0
- Remove references to the `sysrandom` gem from the README
- rackup command fails with Sinatra app in ruby 3.3.0-rc1
- Classic Style Application without a `config.ru` does not work with Ruby 3.3 and Bundler 2.5 HOT 9
- Address warnings seen when running rack-protection tests
- Release 4.0
- Failing tests with ruby-head HOT 7
- rack-protection: addition of "base64" as a dependency conflicts with passenger HOT 7
- Raise `required_ruby_version` to 2.7.8
- Route Middleware
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 sinatra.