Method: Inversion::Template#reload

Defined in:
lib/inversion/template.rb

#reloadObject

If the template was loaded from a file, reload and reparse it from the same file.



318
319
320
321
322
323
324
325
# File 'lib/inversion/template.rb', line 318

def reload
	file = self.source_file or
		raise Inversion::Error, "template was not loaded from a file"

	self.log.debug "Reloading from %s" % [ file ]
	source = file.read
	self.parse( source )
end