Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added support for global.css

  • Loading branch information...
commit 3fce79ef3e89dc49087ce1adabe637acab255029 1 parent 2501bf1
@pgte authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 lib/styled_objects/helpers/include.rb
View
21 lib/styled_objects/helpers/include.rb
@@ -0,0 +1,21 @@
+module StyledObjects
+ module Helpers
+ module Include
+
+ def self.included(base)
+ base.send(:include, InstanceMethods)
+ end
+
+ module InstanceMethods
+ def so_include_partial(path)
+ partials_collector << _so_pick_partial_template_path(path, true)
+ end
+ def so_include_template(path)
+ partials_collector << _so_pick_partial_template_path(path, false)
+ end
+ end
+
+ end
+ end
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.