Skip to content

Possibility to include partials outside of the theme #153

@alekseyp

Description

@alekseyp

I'm currently running an older version that allows including files outside of the theme, but going over newer commits I see that it was patched as a security bug that stops you from going outside your theme to find files.

Usually I would have one theme that is common and than all my other themes would load partials from it
Which could include forms, content, or simple html elements that are exactly the same on ~20 websites.

Out of all partials, I only have one that has php in it via onStart().

To test it, you can create new empty theme and try to load a partial from a demo theme

{% partial '../../demo/partials/calcresult' %}

I have also tried using ~/themes/, etc

I do understand security concern, but would be good if there was a way to disable it for the whole project.

One of the "workaround" I had in mind is to create a relative symlink in each theme, but was curious if there a better way to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    low priorityIssues that are backlogged for when things are less busy

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions