Skip to content

Depthed helpers do not work after an upgrade from 1.0.0 #658

Closed
@churchofthought

Description

@churchofthought

In our templates we have code as follows:
{{../hexToRGB colorScheme.backgroundColor}}

Apparently this code is responsible:

if (part === ".." || part === "." || part === "this") {
    if (dig.length > 0) { throw new Exception("Invalid path: " + original); }
    else if (part === "..") { 
      //COMMENTED OUT //depth++;   // do nothing instead, fixes depthed helpers
    }
    else { this.isScoped = true; }
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions