├── .github └── workflows │ └── test.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── actionview_precompiler.gemspec ├── bin ├── console └── setup ├── lib ├── actionview_precompiler.rb └── actionview_precompiler │ ├── ast_parser.rb │ ├── ast_parser │ ├── jruby.rb │ ├── prism.rb │ ├── ripper.rb │ └── ruby26.rb │ ├── controller_parser.rb │ ├── controller_scanner.rb │ ├── helper_parser.rb │ ├── helper_scanner.rb │ ├── parsed_filename.rb │ ├── precompiler.rb │ ├── render_parser.rb │ ├── template_file.rb │ ├── template_loader.rb │ ├── template_parser.rb │ ├── template_scanner.rb │ └── version.rb └── test ├── actionview_precompiler_test.rb ├── ast_parser_test.rb ├── controller_scanner_test.rb ├── fixtures ├── controllers │ └── users_controller.rb ├── helpers │ └── users_helper.rb └── views │ ├── layouts │ ├── site.html.erb │ └── with_yield.html.erb │ └── users │ ├── _description.html.erb │ ├── _foo.html.erb │ ├── _user.html.erb │ ├── plain_rubby.html.ruby │ └── show.html.erb ├── helper_scanner_test.rb ├── precompiler_test.rb ├── render_parser_test.rb ├── template_parser_test.rb └── test_helper.rb /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/Rakefile -------------------------------------------------------------------------------- /actionview_precompiler.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/actionview_precompiler.gemspec -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/bin/setup -------------------------------------------------------------------------------- /lib/actionview_precompiler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/ast_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/ast_parser.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/ast_parser/jruby.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/ast_parser/jruby.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/ast_parser/prism.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/ast_parser/prism.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/ast_parser/ripper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/ast_parser/ripper.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/ast_parser/ruby26.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/ast_parser/ruby26.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/controller_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/controller_parser.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/controller_scanner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/controller_scanner.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/helper_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/helper_parser.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/helper_scanner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/helper_scanner.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/parsed_filename.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/parsed_filename.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/precompiler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/precompiler.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/render_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/render_parser.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/template_file.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/template_file.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/template_loader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/template_loader.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/template_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/template_parser.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/template_scanner.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/lib/actionview_precompiler/template_scanner.rb -------------------------------------------------------------------------------- /lib/actionview_precompiler/version.rb: -------------------------------------------------------------------------------- 1 | module ActionviewPrecompiler 2 | VERSION = "0.4.0" 3 | end 4 | -------------------------------------------------------------------------------- /test/actionview_precompiler_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/actionview_precompiler_test.rb -------------------------------------------------------------------------------- /test/ast_parser_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/ast_parser_test.rb -------------------------------------------------------------------------------- /test/controller_scanner_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/controller_scanner_test.rb -------------------------------------------------------------------------------- /test/fixtures/controllers/users_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/fixtures/controllers/users_controller.rb -------------------------------------------------------------------------------- /test/fixtures/helpers/users_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/fixtures/helpers/users_helper.rb -------------------------------------------------------------------------------- /test/fixtures/views/layouts/site.html.erb: -------------------------------------------------------------------------------- 1 | Welcome 2 | -------------------------------------------------------------------------------- /test/fixtures/views/layouts/with_yield.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/fixtures/views/layouts/with_yield.html.erb -------------------------------------------------------------------------------- /test/fixtures/views/users/_description.html.erb: -------------------------------------------------------------------------------- 1 | This is a description 2 | -------------------------------------------------------------------------------- /test/fixtures/views/users/_foo.html.erb: -------------------------------------------------------------------------------- 1 |
4 | -------------------------------------------------------------------------------- /test/fixtures/views/users/_user.html.erb: -------------------------------------------------------------------------------- 1 | Name: <%= user.name %> 2 | -------------------------------------------------------------------------------- /test/fixtures/views/users/plain_rubby.html.ruby: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/fixtures/views/users/plain_rubby.html.ruby -------------------------------------------------------------------------------- /test/fixtures/views/users/show.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/fixtures/views/users/show.html.erb -------------------------------------------------------------------------------- /test/helper_scanner_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/helper_scanner_test.rb -------------------------------------------------------------------------------- /test/precompiler_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/precompiler_test.rb -------------------------------------------------------------------------------- /test/render_parser_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/render_parser_test.rb -------------------------------------------------------------------------------- /test/template_parser_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/template_parser_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhawthorn/actionview_precompiler/HEAD/test/test_helper.rb --------------------------------------------------------------------------------