Sha256: 35af59ead1eab4262f26ad4e6dc26ab0eae8956aed506b096e5f2077e3aa54a7

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

module Smithy
  module Liquid
    class Database
      def read_template_file(template_path, context)
        _include = Smithy::Template.partials.where(:name => template_path).first
        raise ActiveRecord::RecordNotFound, "No such template '#{template_path}'" unless _include.present?

        _include.content_with_fixed_asset_links
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
smithycms-0.5.99.3 lib/smithy/liquid/database.rb
smithycms-0.5.99.2 lib/smithy/liquid/database.rb
smithycms-0.5.99.1 lib/smithy/liquid/database.rb
smithycms-0.5.99 lib/smithy/liquid/database.rb