Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

issues with Mustache template engine #150

@BlackScorp

Description

@BlackScorp

Hello guys i like the mustache template engine but i cannot use it with piecrust.

  1. Problem when i enable mustache as template engine, Piecrust still search for .html files
    i gues it could be fixed when i add here the template engine default extension https://github.com/ludovicchabant/PieCrust/blob/master/src/PieCrust/Page/PageRenderer.php#L61 instead of .html

  2. i cannot use partials
    {{>header}}
    {{{content}}}
    {{>footer}}

only content is displayed. i think the Problem is on this place

https://github.com/ludovicchabant/PieCrust/blob/master/src/PieCrust/TemplateEngines/MustacheTemplateEngine.php#L65

mustache is not configured at all, the engine does not know anything about template paths or cache folder etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions