Comments (7)
I just ran into this. It would be nice to have application.rb/environments config so it would feel well integrated into rails.
The second proposal however is not an option since Slim/Temple brings its own configuration framework independant of rails.
It doesn't have to inherit rails configuration, it may have simple class which will proxy all configuration calls to slim engine.
In pseudocode:
class SlimRailsConfigProxy
def method_missing(method, args)
if Slim::Engine.options.respond_to?(method)
Slim::Engine.options.send(method, args)
else
raise ArgumentError, "Slim does not have option #{method}"
end
end
end
@minad may you reconsider your decision? would you accept PR of such functionality?
from slim-rails.
@Fedcomp sounds good. I'm the current maintainer of this gem, let's work on a new PR for this functionality.
from slim-rails.
The pretty proposal is reasonable. The second proposal however is not an option since Slim/Temple brings its own configuration framework independant of rails.
from slim-rails.
I think it's a good idea, because we have a "slim-rails", and support rails configuration will be good for rails applications.
from slim-rails.
+1 👍
from slim-rails.
Okay thanks! i'll try to make a PR this or next weekend.
from slim-rails.
@januszm sorry. Unfornately when i found time to work on it, i ran into incompatibility with rails 3, and left no time and willing to resolve it. And i'll probably stop.
from slim-rails.
Related Issues (20)
- Please release 3.1.3 gem HOT 2
- Facing problems to put some CSS styles inside the head tag on the application.html.slim HOT 1
- Please release a version of slim-rails compatible with Slim 4 HOT 1
- Update templates to use 'form_with' HOT 1
- Issue with finding template in rails 6 engine HOT 8
- Rails crashed with a slim markup that had duplicate data- item
- Custom templates / override a generator method
- JavaScript Include Tag for Subresource Integrity
- Dynamic data tag attributes HOT 1
- CI: Use a new runner HOT 2
- changelog for 3.3.0 is missing HOT 2
- Action Text: Rich Text Content displayed as raw html HOT 1
- Generators should not generate .txt.slim templates HOT 1
- Update templates to Rails 7
- Syntax error, unexpected keyword_rescue, expecting keyword_end HOT 8
- Breaks rails generate. Rails 7 compat? HOT 7
- v3.6.0 allows Slim 5.0.0, which has a major issue with Rails (fixed on slim main but unreleased) HOT 7
- ActionView::SyntaxErrorInTemplate when scaffolding with namespace HOT 2
- Rails 7.1 breaks slim partial block rendering when the partial is empty HOT 2
- rails extracted source noise
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 slim-rails.