Skip to content

Commit

Permalink
When fragment parsed has a null template, default to this
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Jul 3, 2016
1 parent 484f8ab commit 0df36e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TemplateModelFinder {
// TODO: Simplify this method signature by deriving the layout dialect
// prefix from the context.

def templateName = fragmentExpression.templateName.execute(context).toString()
def templateName = fragmentExpression.templateName?.execute(context)?.toString() ?: 'this'
if (templateName == 'this') {
templateName = context.templateData.template
}
Expand Down

0 comments on commit 0df36e2

Please sign in to comment.