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

Can only use .marko extension for layouts? #2

Closed
@snapwich

Description

@snapwich

I'm guessing Marko is meant to support more than just a .marko extension since the install has a configuration option for other extensions like so: require('marko/node-require').install({extension: ".html"});

That works for single files but if I have the following:

<layout-use template="../layouts/page.html">
    <layout-put into="content">test content</layout-put>
</layout-use>

I get the following error:

node_modules\marko\runtime\helpers.js:129
                return req('view-engine').load(path);
                       ^
TypeError: undefined is not a function

The same error seems to be true for includes as well. Is there some more configuration I'm missing somewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions