oversight on the fact you shouldn't have to put template in quotes. return of the gsub
This commit is contained in:
parent
c998d4150c
commit
9aa68c4611
@ -91,9 +91,10 @@ module Locomotive
|
|||||||
|
|
||||||
def build_parent_template(template)
|
def build_parent_template(template)
|
||||||
# just check if the template contains the extends keyword
|
# just check if the template contains the extends keyword
|
||||||
fullpath = template.scan(/\{%\s*extends\s*\'([^\']+)\'\s*%\}/).flatten.first
|
fullpath = template.scan(/\{%\s*extends\s*([^\']+)\s*%\}/).flatten.first
|
||||||
|
|
||||||
if fullpath # inheritance detected
|
if fullpath # inheritance detected
|
||||||
|
fullpath.gsub!("'", '')
|
||||||
return if fullpath == 'parent'
|
return if fullpath == 'parent'
|
||||||
self.add_page(fullpath)
|
self.add_page(fullpath)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user