the template parsers was broken on ree, made it a bit simpler, just look for slashes
This commit is contained in:
parent
af59f2ea7e
commit
2c1a6c381c
@ -91,10 +91,9 @@ module Locomotive
|
||||
|
||||
def build_parent_template(template)
|
||||
# just check if the template contains the extends keyword
|
||||
fullpath = template.scan(/\{%\s*extends\s*([^\']+)\s*%\}/).flatten.first
|
||||
fullpath = template.scan(/\{% extends \'?([\w|\/]+)\'? %\}/).flatten.first
|
||||
|
||||
if fullpath # inheritance detected
|
||||
fullpath.gsub!("'", '')
|
||||
return if fullpath == 'parent'
|
||||
self.add_page(fullpath)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user