Comments (7)
A possible work around is to rename cr-player.html
to cr-player.html.erb
and use the asset_path
helper:
<link rel="stylesheet" href="<%= asset_path('cr-player/cr-player.css') %>">
However, that prevents the stylesheet from being inlined which defaults the whole point of using Emcee in the first place!
from emcee.
Right now the gem doesn't support this, although there has been some discussion about it.
Until now I haven't thought too much about it. I do think the gem should support it, so I'll start looking at processing stylesheets and scripts before inlining them. Also, if you have any thoughts about implementation, I'm definitely willing to entertain ideas/pull-requests.
from emcee.
Also, I forgot to mention: you're using this exactly right, so no apologies necessary. And thank you for making a repo demonstrating the issue. That makes this a lot easier to tackle.
from emcee.
Okay, thanks! I'll be sure to let you know if I have any ideas.
from emcee.
@peterhorne The last couple of days I've been working on this, and the compile-scss branch now works.
The current organization of the StylesheetProcessor doesn't really let me unit test this, which is a problem. It works, but I want to fix that before it gets merged in to a release.
Just wanted to let you know that this has been worked on and it does work.
from emcee.
@peterhorne I have managed to unit test the sass processing part. The changes have been merged and pushed to a new release. It's also been pushed to rubygems.org, so you should be good to go.
Also, I did verify that your example-repo now works correctly.
Let me know if you have any issues with it, and thanks for raising the issue.
from emcee.
Awesome! Thank you very much!
from emcee.
Related Issues (20)
- Issue Using Erb Templating in HTML Imports HOT 9
- HAML support for html_import_tag HOT 2
- core-icon, core-scaffold not working HOT 9
- Routing Error HOT 4
- Stylesheets linked from polymer elements aren't being precompiled HOT 3
- External stylesheets aren't being reloaded HOT 3
- Getting not valid UTF-8 when using google-map web component HOT 5
- Some paper elements break polymer HOT 7
- Image asset urls HOT 2
- Polymer/Paper path parsing issue. HOT 4
- core-icon-button not working (random src) HOT 3
- Icons within elements (e.g., paper-icon-button) not rendering; think its a pipeline issue HOT 8
- Encoding / Umlauts escaping in JavaScript HOT 4
- Support: Import on custom elements HOT 1
- paper-toast not working in Firefox and Safari HOT 4
- Reloading of stylesheets HOT 2
- core-transition throwing exception HOT 1
- Emcee Railtie cant Modify frozen Array HOT 7
- Using rails + polymer how to root in rails HOT 1
- toastr is not working on safari at mac book pro
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 emcee.