0.0
No commit activity in last 3 years
No release in over 3 years
Provide SSH port forwarding while deploying
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

~> 3.4.22
 Project Readme

sass-tumblr

Ignore Tumblr template tags like a { color: {color:Text}; } while parsing SCSS with Sass gem. At this moment, old indent base sass is not supported.

Usage

Use Bundler and add a dependency to your Gemfile.

$ gem "sass-tumblr"

Then require sass_tumblr in appropriate way.

require "sass_tumblr"

Example

Parse SCSS with Tumblr template tags using rib.

$ bundle exec irb
irb> require "sass_tumblr"
irb> puts Sass::Engine.new("body {color: {color:Text}}", :syntax => :scss).render
body {
  color: {color:Text}; }

Limitations

At this moment, all Tumblr tags in SCSS must be one of next format. Basically it follows Tumbler template document, but not all existing templates are following this rule.

{CapitalizedTagName}
{CustomCSS}
{color:Capitalized Key Name}
{font:Capitalized Key Name}
{text:Capitalized Key Name}
{image:Capitalized Key Name}

Also {block:KeyName} and {/block:KeyName} may not work.