Sha256: ecb5d4e1dee656cbe059084aec01b25a8dc19f68f769bed7d8ca063f31d57a00
Contents?: true
Size: 998 Bytes
Versions: 1
Compression:
Stored size: 998 Bytes
Contents
require 'socket' layout 'layout.html.erb' ignore /css\// ignore /js\// ignore /.+.md/ ignore /Gemfile.*/ ignore /Procfile/ ignore /compile.rb/ before /test\/.*html\.erb/ do layout 'test/layout.html.erb' end helpers do def asset_path if @_stasis.options[:asset_path] @_stasis.options[:asset_path] elsif Socket.gethostname == "modularis" "http://modularis.themepile.com/docs/assets" else "http://#{Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.getnameinfo[0]}:4001/assets" end end def code_example(code, lang=:ruby) "<div class='#{lang}'>" + CodeRay.scan(code, lang).div(:css => :class) + "</div>" end def modularis_home_path '/' end def features_path '/grid.php' end def training_path '/training.php' end def add_ons_path '/templates.php' end def case_studies_path '/case-jacquelinewest.php' end def docs_path '/docs/' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
modularis-0.0.1 | docs/controller.rb |