Search code examples
plonezopegrok

Making grok views to look template from a parent directory in Plone


If I try

  grok.templatedir("../browser/templates")

I get

  GrokImportError: The 'templatedir' directive can not contain path separator.

What's the correct way to set five.grok template directory to an absolute path?


Solution

  • "grok.templatedir(directory) - directory - the name of the directory inside the same package as the module"

    I fear that at the moment there isn't a correct way, indeed there is no way.

    There is a pending bug about this and eventually there will be a refactoring.

    More info: