Comments (3)
Assuming there is an exception raised, you should be able to get the backtrace for it. That should show you where the error is. If I had to guess, Silm is raising an exception in your layout.slim file.
from roda.
I might need a little more hand-holding debugging this :)
I added Rack::CommonLogger and it doesn't even show that Roda is seeing the request. I can't seem to find a backtrace anywhere. The app is completely silent.
Am I the only one that has tried slim under Roda? I thought the problem might be platform specific, but I tested it on my Mac and Linux box with the same result.
from roda.
This doesn't appear to be a bug in Roda. Per the contribution guidelines, it's best to ask for help on the IRC channel or the Google Group. GitHub Issues is not a support forum, it's used solely to handling bug reports.
I tried using slim with roda, and it works fine with the following code:
config.ru:
require 'roda'
require 'slim'
class SlimTest < Roda
plugin :render, engine: 'slim'
route do |r|
r.root do
@author = 'jeremy'
@year = 2016
@items = [Struct.new(:name, :price).new('a', 3)]*3
view :index
end
end
end
run SlimTest.freeze.app
views/index.slim:
h2 Index
views/layout.slim:
doctype html
html
head
title Slim Examples
meta name="keywords" content="template language"
meta name="author" content=@author
javascript:
alert('Slim supports embedded javascript!')
body
h1 Markup examples
#content
p This example shows you how a basic Slim file looks like.
== yield
- unless @items.empty?
table
- @items.each do |item|
tr
td.name = item.name
td.price = item.price
- else
p
| No items found. Please add some inventory.
Thank you!
div id="footer"
| Copyright #{@year} #{@author}
from roda.
Related Issues (20)
- Envrionments plugin: provide instance methods too? HOT 1
- How can i load coffeescript in roda HOT 2
- How to use common_logger plugin to log information in routes implementation or in specs or other place in the application? HOT 6
- [feature request] Make the view method (from the render plugin) accept a block like the render method does HOT 1
- route_csrf incompatible with rack-protection authenticity token checks HOT 5
- Unfork HOT 3
- env['rack.errors'] parsed as a link in common_logger plugin documentation HOT 2
- String matcher in hash_routes combined with unescape_path does not match non-ascii strings HOT 1
- [Documentation / Question] Request for a FAQ for experienced sinatra users HOT 1
- Raises "Unsupported block result" when using Unreloader and json plugin HOT 2
- On app startup. Getting message > Rack::Handler is deprecated and replaced by Rackup::Handler HOT 2
- Not compatible with Haml >= 6 HOT 2
- URI Unicode handling HOT 6
- Duplicating Content-Type header when header key comes in lowercase HOT 3
- json plugin does not support FalseClass and String anymore HOT 1
- Can gRPC services and clients be integrated?
- Unicode escapes not decoded in path HOT 3
- Sanitize params when using plugin `error_mail` HOT 2
- Missing rackup on clean install HOT 4
- Bundler, Zeitwerk & Roda Plugins HOT 5
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 roda.