Last active
June 14, 2016 14:04
-
-
Save Odaeus/659e6f3505a368b08e40436e31661330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "globals"; | |
custom-element { | |
--custom-var: $primaryColour; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.config.assets.configure do |env| | |
# Add ".psm" extension to wrap a file in a Polymer style module | |
PsmWrapper = ->(input) { | |
<<~DOC | |
<dom-module id="#{input[:name]}"> | |
<template> | |
<style> | |
#{input[:data]} | |
</style> | |
</template> | |
</dom-module> | |
DOC | |
} | |
env.register_engine ".psm", PsmWrapper, mime_type: "text/html" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment