add name attribute to Template for more flexibility to set context's template name

This commit is contained in:
Michael Go
2023-02-27 17:11:52 -04:00
parent 0fe4a5d144
commit 428c66ffac
6 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module Liquid
# template.render('user_name' => 'bob')
#
class Template
attr_accessor :root
attr_accessor :root, :name
attr_reader :resource_limits, :warnings
class TagRegistry