├── .gitignore ├── .travis.yml ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── bin └── stasis ├── lib ├── ext │ └── string.rb ├── stasis.rb └── stasis │ ├── dev_mode.rb │ ├── options.rb │ ├── plugin.rb │ ├── plugins │ ├── after.rb │ ├── before.rb │ ├── helpers.rb │ ├── ignore.rb │ ├── instead.rb │ ├── layout.rb │ ├── priority.rb │ └── render.rb │ ├── scope.rb │ └── scope │ ├── action.rb │ └── controller.rb ├── site ├── arrow.png ├── controller.rb ├── github.png ├── index.html.haml ├── jquery-1.6.2.js ├── stasis.css.scss ├── stasis.js.coffee └── stasis.png ├── spec ├── fixtures │ ├── mixins │ │ └── template_options.scss │ └── project │ │ ├── .dotfile │ │ ├── _locals.html.haml │ │ ├── _partial.html.haml │ │ ├── before_render_locals.html.haml │ │ ├── before_render_partial.html.haml │ │ ├── before_render_text.html.haml │ │ ├── controller.rb │ │ ├── css.css.scss │ │ ├── erb.html.erb │ │ ├── ignored_subdirectory │ │ └── controller.rb │ │ ├── index.html.haml │ │ ├── layout.html.erb │ │ ├── layout.html.haml │ │ ├── layout_action.html.haml │ │ ├── layout_action_from_subdirectory.html.haml │ │ ├── layout_controller.html.haml │ │ ├── layout_controller_from_subdirectory.html.haml │ │ ├── no_controller │ │ └── index.html.haml │ │ ├── not_dynamic.html │ │ ├── params.html.haml │ │ ├── plugin.rb │ │ ├── render_locals.html.haml │ │ ├── subdirectory │ │ ├── _locals.html.haml │ │ ├── _partial.html.haml │ │ ├── before_render_locals.html.haml │ │ ├── before_render_partial.html.haml │ │ ├── before_render_text.html.haml │ │ ├── controller.rb │ │ ├── ignore.html.haml │ │ ├── index.html.haml │ │ ├── layout.html.haml │ │ ├── layout_action.html.haml │ │ ├── layout_action_from_root.html.haml │ │ ├── layout_controller.html.haml │ │ ├── layout_controller_from_root.html.haml │ │ └── render_locals.html.haml │ │ ├── template_options.css.scss │ │ ├── template_options.html.haml │ │ └── time.html.haml ├── spec_helper.rb ├── stasis │ └── plugins │ │ ├── before_spec.rb │ │ ├── helpers_spec.rb │ │ ├── ignore_spec.rb │ │ ├── layout_spec.rb │ │ ├── priority_spec.rb │ │ └── render_spec.rb └── stasis_spec.rb └── stasis.gemspec /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/stasis: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/bin/stasis -------------------------------------------------------------------------------- /lib/ext/string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/ext/string.rb -------------------------------------------------------------------------------- /lib/stasis.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis.rb -------------------------------------------------------------------------------- /lib/stasis/dev_mode.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/dev_mode.rb -------------------------------------------------------------------------------- /lib/stasis/options.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/options.rb -------------------------------------------------------------------------------- /lib/stasis/plugin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugin.rb -------------------------------------------------------------------------------- /lib/stasis/plugins/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugins/after.rb -------------------------------------------------------------------------------- /lib/stasis/plugins/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugins/before.rb -------------------------------------------------------------------------------- /lib/stasis/plugins/helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugins/helpers.rb -------------------------------------------------------------------------------- /lib/stasis/plugins/ignore.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugins/ignore.rb -------------------------------------------------------------------------------- /lib/stasis/plugins/instead.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugins/instead.rb -------------------------------------------------------------------------------- /lib/stasis/plugins/layout.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugins/layout.rb -------------------------------------------------------------------------------- /lib/stasis/plugins/priority.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugins/priority.rb -------------------------------------------------------------------------------- /lib/stasis/plugins/render.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/plugins/render.rb -------------------------------------------------------------------------------- /lib/stasis/scope.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/scope.rb -------------------------------------------------------------------------------- /lib/stasis/scope/action.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/scope/action.rb -------------------------------------------------------------------------------- /lib/stasis/scope/controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/lib/stasis/scope/controller.rb -------------------------------------------------------------------------------- /site/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/site/arrow.png -------------------------------------------------------------------------------- /site/controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/site/controller.rb -------------------------------------------------------------------------------- /site/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/site/github.png -------------------------------------------------------------------------------- /site/index.html.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/site/index.html.haml -------------------------------------------------------------------------------- /site/jquery-1.6.2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/site/jquery-1.6.2.js -------------------------------------------------------------------------------- /site/stasis.css.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/site/stasis.css.scss -------------------------------------------------------------------------------- /site/stasis.js.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/site/stasis.js.coffee -------------------------------------------------------------------------------- /site/stasis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/site/stasis.png -------------------------------------------------------------------------------- /spec/fixtures/mixins/template_options.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/mixins/template_options.scss -------------------------------------------------------------------------------- /spec/fixtures/project/.dotfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/fixtures/project/_locals.html.haml: -------------------------------------------------------------------------------- 1 | = x -------------------------------------------------------------------------------- /spec/fixtures/project/_partial.html.haml: -------------------------------------------------------------------------------- 1 | root -------------------------------------------------------------------------------- /spec/fixtures/project/before_render_locals.html.haml: -------------------------------------------------------------------------------- 1 | fail -------------------------------------------------------------------------------- /spec/fixtures/project/before_render_partial.html.haml: -------------------------------------------------------------------------------- 1 | fail -------------------------------------------------------------------------------- /spec/fixtures/project/before_render_text.html.haml: -------------------------------------------------------------------------------- 1 | fail -------------------------------------------------------------------------------- /spec/fixtures/project/controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/controller.rb -------------------------------------------------------------------------------- /spec/fixtures/project/css.css.scss: -------------------------------------------------------------------------------- 1 | body { background: red } -------------------------------------------------------------------------------- /spec/fixtures/project/erb.html.erb: -------------------------------------------------------------------------------- 1 | erb template -------------------------------------------------------------------------------- /spec/fixtures/project/ignored_subdirectory/controller.rb: -------------------------------------------------------------------------------- 1 | raise "This file should have been ignored." 2 | -------------------------------------------------------------------------------- /spec/fixtures/project/index.html.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/index.html.haml -------------------------------------------------------------------------------- /spec/fixtures/project/layout.html.erb: -------------------------------------------------------------------------------- 1 | erb layout 2 | <%= yield %> -------------------------------------------------------------------------------- /spec/fixtures/project/layout.html.haml: -------------------------------------------------------------------------------- 1 | layout 2 | root 3 | = yield -------------------------------------------------------------------------------- /spec/fixtures/project/layout_action.html.haml: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/layout_action_from_subdirectory.html.haml: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/layout_controller.html.haml: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/layout_controller_from_subdirectory.html.haml: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/no_controller/index.html.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/no_controller/index.html.haml -------------------------------------------------------------------------------- /spec/fixtures/project/not_dynamic.html: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/params.html.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/params.html.haml -------------------------------------------------------------------------------- /spec/fixtures/project/plugin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/plugin.rb -------------------------------------------------------------------------------- /spec/fixtures/project/render_locals.html.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/render_locals.html.haml -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/_locals.html.haml: -------------------------------------------------------------------------------- 1 | = x -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/_partial.html.haml: -------------------------------------------------------------------------------- 1 | subdirectory -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/before_render_locals.html.haml: -------------------------------------------------------------------------------- 1 | fail -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/before_render_partial.html.haml: -------------------------------------------------------------------------------- 1 | fail -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/before_render_text.html.haml: -------------------------------------------------------------------------------- 1 | fail -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/subdirectory/controller.rb -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/ignore.html.haml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/index.html.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/subdirectory/index.html.haml -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/layout.html.haml: -------------------------------------------------------------------------------- 1 | layout 2 | subdirectory 3 | = yield -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/layout_action.html.haml: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/layout_action_from_root.html.haml: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/layout_controller.html.haml: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/layout_controller_from_root.html.haml: -------------------------------------------------------------------------------- 1 | pass -------------------------------------------------------------------------------- /spec/fixtures/project/subdirectory/render_locals.html.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/subdirectory/render_locals.html.haml -------------------------------------------------------------------------------- /spec/fixtures/project/template_options.css.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/fixtures/project/template_options.css.scss -------------------------------------------------------------------------------- /spec/fixtures/project/template_options.html.haml: -------------------------------------------------------------------------------- 1 | %style= @css 2 | -------------------------------------------------------------------------------- /spec/fixtures/project/time.html.haml: -------------------------------------------------------------------------------- 1 | time 2 | = Time.now.to_f -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/stasis/plugins/before_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/stasis/plugins/before_spec.rb -------------------------------------------------------------------------------- /spec/stasis/plugins/helpers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/stasis/plugins/helpers_spec.rb -------------------------------------------------------------------------------- /spec/stasis/plugins/ignore_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/stasis/plugins/ignore_spec.rb -------------------------------------------------------------------------------- /spec/stasis/plugins/layout_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/stasis/plugins/layout_spec.rb -------------------------------------------------------------------------------- /spec/stasis/plugins/priority_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/stasis/plugins/priority_spec.rb -------------------------------------------------------------------------------- /spec/stasis/plugins/render_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/stasis/plugins/render_spec.rb -------------------------------------------------------------------------------- /spec/stasis_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/spec/stasis_spec.rb -------------------------------------------------------------------------------- /stasis.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/winton/stasis/HEAD/stasis.gemspec --------------------------------------------------------------------------------