├── .github ├── FUNDING.yml └── workflows │ └── test.yml ├── .gitignore ├── CHANGELOG.md ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── TODO.md ├── examples ├── app.rb ├── composition.rb ├── dashboard.rb ├── gen2.rb ├── perf.rb ├── perf_code_gen.rb ├── perf_instance_eval.rb ├── perf_optimized.rb ├── perf_raw.rb └── simple.rb ├── lib ├── papercraft.rb ├── papercraft │ ├── compiler.rb │ ├── compiler │ │ ├── nodes.rb │ │ └── tag_translator.rb │ ├── proc.rb │ ├── proc_ext.rb │ ├── template.rb │ └── version.rb └── tilt │ └── papercraft.rb ├── papercraft.gemspec ├── papercraft.png └── test ├── fixtures └── compiler │ ├── attributes.html │ ├── attributes_source.rb │ ├── basic.html │ ├── basic_source.rb │ ├── defer.html │ ├── defer_source.rb │ ├── expr_text.html │ ├── expr_text_source.rb │ ├── html_extensions.html │ ├── html_extensions_source.rb │ ├── interspersed.html │ ├── interspersed_source.rb │ ├── iteration.html │ ├── iteration_source.rb │ ├── params.html │ ├── params_source.rb │ ├── raw.html │ ├── raw_source.rb │ ├── render.html │ ├── render_source.rb │ ├── render_with_block.html │ ├── render_with_block_source.rb │ ├── ternary.html │ ├── ternary_source.rb │ ├── text.html │ └── text_source.rb ├── helper.rb ├── js ├── bar.js └── foo.js ├── run.rb ├── test_compiler.rb ├── test_html.rb ├── test_markdown.rb ├── test_papercraft.rb ├── test_proc.rb ├── test_template.rb ├── test_tilt.rb └── test_xml.rb /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: noteflakes 2 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://gem.coop' 2 | 3 | gemspec 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/Rakefile -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/TODO.md -------------------------------------------------------------------------------- /examples/app.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/app.rb -------------------------------------------------------------------------------- /examples/composition.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/composition.rb -------------------------------------------------------------------------------- /examples/dashboard.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/dashboard.rb -------------------------------------------------------------------------------- /examples/gen2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/gen2.rb -------------------------------------------------------------------------------- /examples/perf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/perf.rb -------------------------------------------------------------------------------- /examples/perf_code_gen.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/perf_code_gen.rb -------------------------------------------------------------------------------- /examples/perf_instance_eval.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/perf_instance_eval.rb -------------------------------------------------------------------------------- /examples/perf_optimized.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/perf_optimized.rb -------------------------------------------------------------------------------- /examples/perf_raw.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/perf_raw.rb -------------------------------------------------------------------------------- /examples/simple.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/examples/simple.rb -------------------------------------------------------------------------------- /lib/papercraft.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/lib/papercraft.rb -------------------------------------------------------------------------------- /lib/papercraft/compiler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/lib/papercraft/compiler.rb -------------------------------------------------------------------------------- /lib/papercraft/compiler/nodes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/lib/papercraft/compiler/nodes.rb -------------------------------------------------------------------------------- /lib/papercraft/compiler/tag_translator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/lib/papercraft/compiler/tag_translator.rb -------------------------------------------------------------------------------- /lib/papercraft/proc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/lib/papercraft/proc.rb -------------------------------------------------------------------------------- /lib/papercraft/proc_ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/lib/papercraft/proc_ext.rb -------------------------------------------------------------------------------- /lib/papercraft/template.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/lib/papercraft/template.rb -------------------------------------------------------------------------------- /lib/papercraft/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Papercraft 4 | VERSION = '3.2.0' 5 | end 6 | -------------------------------------------------------------------------------- /lib/tilt/papercraft.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/lib/tilt/papercraft.rb -------------------------------------------------------------------------------- /papercraft.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/papercraft.gemspec -------------------------------------------------------------------------------- /papercraft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/papercraft.png -------------------------------------------------------------------------------- /test/fixtures/compiler/attributes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/attributes.html -------------------------------------------------------------------------------- /test/fixtures/compiler/attributes_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/attributes_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/basic.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/basic.html -------------------------------------------------------------------------------- /test/fixtures/compiler/basic_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/basic_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/defer.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/defer.html -------------------------------------------------------------------------------- /test/fixtures/compiler/defer_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/defer_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/expr_text.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/expr_text.html -------------------------------------------------------------------------------- /test/fixtures/compiler/expr_text_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/expr_text_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/html_extensions.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/html_extensions.html -------------------------------------------------------------------------------- /test/fixtures/compiler/html_extensions_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/html_extensions_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/interspersed.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/interspersed.html -------------------------------------------------------------------------------- /test/fixtures/compiler/interspersed_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/interspersed_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/iteration.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/iteration.html -------------------------------------------------------------------------------- /test/fixtures/compiler/iteration_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/iteration_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/params.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/params.html -------------------------------------------------------------------------------- /test/fixtures/compiler/params_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/params_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/raw.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/raw.html -------------------------------------------------------------------------------- /test/fixtures/compiler/raw_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/raw_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/render.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/render.html -------------------------------------------------------------------------------- /test/fixtures/compiler/render_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/render_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/render_with_block.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/render_with_block.html -------------------------------------------------------------------------------- /test/fixtures/compiler/render_with_block_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/render_with_block_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/ternary.html: -------------------------------------------------------------------------------- 1 |

foo

-------------------------------------------------------------------------------- /test/fixtures/compiler/ternary_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/ternary_source.rb -------------------------------------------------------------------------------- /test/fixtures/compiler/text.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/text.html -------------------------------------------------------------------------------- /test/fixtures/compiler/text_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/fixtures/compiler/text_source.rb -------------------------------------------------------------------------------- /test/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/helper.rb -------------------------------------------------------------------------------- /test/js/bar.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/js/foo.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/run.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/run.rb -------------------------------------------------------------------------------- /test/test_compiler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/test_compiler.rb -------------------------------------------------------------------------------- /test/test_html.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/test_html.rb -------------------------------------------------------------------------------- /test/test_markdown.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/test_markdown.rb -------------------------------------------------------------------------------- /test/test_papercraft.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/test_papercraft.rb -------------------------------------------------------------------------------- /test/test_proc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/test_proc.rb -------------------------------------------------------------------------------- /test/test_template.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/test_template.rb -------------------------------------------------------------------------------- /test/test_tilt.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/test_tilt.rb -------------------------------------------------------------------------------- /test/test_xml.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/digital-fabric/papercraft/HEAD/test/test_xml.rb --------------------------------------------------------------------------------