Sha256: 76e032d94d10b964212e6f3116317b03178caef957ab67164fa4e1b904eb2ad4
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
module PartialCompiler require 'partial_compiler/railtie' if defined?(Rails) @config = { template_engine: ActionView::Template::Handlers::ERB, original_extension: "html.erb", rendering_engine_partial_format: "= render partial:", # This code would be the code that's executing inside your template, e.g. `render partial: 'my_partial'` regex_partial_eval_match: /(render .*)%>/, run_compiled: !Rails.env.development? } @valid_config_keys = @config.keys def self.configure(opts = {}) opts.each {|k,v| @config[k.to_sym] = v if @valid_config_keys.include? k.to_sym} end def self.config @config end end require "partial_compiler/plugin" require "partial_compiler/file_copier" require "partial_compiler/partial_reader" require "partial_compiler/compiler"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
partial_compiler-0.0.3 | lib/partial_compiler.rb |