mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Mordernize code base with __dir__ and require_relative
This commit is contained in:
@@ -24,6 +24,6 @@ class LiquidServlet < WEBrick::HTTPServlet::AbstractServlet
|
||||
end
|
||||
|
||||
def read_template(filename = @action)
|
||||
File.read( File.dirname(__FILE__) + "/templates/#{filename}.liquid" )
|
||||
File.read("#{__dir__}/templates/#{filename}.liquid")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user