Sha256: 256fc936d002990437f9c976411fbaea6e599a3f928b0f9dfc7ed6f00befe30d
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
module PartialCompiler require 'partial_compiler/railtie' if defined?(Rails) @config = { template_engine: "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 def self.start Plugin.new 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.4 | lib/partial_compiler.rb |