Class: Solid::Template

Inherits:
Liquid::Template
  • Object
show all
Extended by:
Forwardable
Includes:
Iterable
Defined in:
lib/solid/template.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Iterable

#each

Class Method Details

.parse(source) ⇒ Object



9
10
11
12
13
# File 'lib/solid/template.rb', line 9

def parse(source)
  template = Solid::Template.new
  template.parse(source)
  template
end

Instance Method Details

#freezeObject

Avoid issues with ActiveSupport::Cache which freeze all objects passed to it like an ass And anyway once frozen Liquid::Templates are unable to render anything



21
22
# File 'lib/solid/template.rb', line 21

def freeze
end