Closed stevenspiel closed 4 years ago
Since the asset is compiled at a different time to your request (i.e. when deploying into production) it won't have access to your request. I've solved this problem by inlining some override CSS in a <style>
tag in the head of the page. If you use Turbolinks you'll need to add this into the body of the page.
I'm on
rails 4.2.5
withless-rails 2.7.1
and I'm having issues importing less.erb files.My manifest file:
application.less
:and
theme.less.erb
isWithout the
erb
interpolation, it does fine, but otherwise, it raises:The
@branding
variable is being set inapplication_controller.rb
:But the
erb
interpolation doesn't work even without the variable:I'd really like to have some per-user basis branding that is compiled (and possibly cached) on the fly. What do you suggest?