Sha256: 04ba144b0344662e735ff40eb54803f485b69ae65fb88566533520e502e98141

Contents?: true

Size: 1.25 KB

Versions: 19

Compression:

Stored size: 1.25 KB

Contents

#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

module Reality #nodoc
  module Generators #nodoc

    # A standard template set that simple methods for creating templates using included template types
    class StandardTemplateSet < TemplateSet
      def erb_template(facets, target, template_filename, output_filename_pattern, helpers = [], options = {})
        Reality::Generators::ErbTemplate.new(self, facets, target.to_sym, template_filename, output_filename_pattern, helpers, options)
      end

      def ruby_template(facets, target, template_filename, output_filename_pattern, helpers = [], options = {})
        Reality::Generators::RubyTemplate.new(self, facets, target.to_sym, template_filename, output_filename_pattern, helpers, options)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
reality-generators-1.23.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.22.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.21.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.20.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.19.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.18.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.17.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.16.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.15.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.14.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.13.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.12.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.11.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.10.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.9.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.8.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.7.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.6.0 lib/reality/generators/standard_template_set.rb
reality-generators-1.5.0 lib/reality/generators/standard_template_set.rb