Skip to content

allow include tag to be multi-line #331

Description

@laconiccrafts

include tag seem to only be able to be written in a single line.

i was currently refactoring some code by moving common html patterns like btns and links to partials and using include to add it to templates.

sometimes the partials will take many variables and include being only single line makes it hard to read the code.

since include couldn't take dynamic values from context anyway, i was solving this by using the with tag to wrap the include.

allowing include to be multiline would just make the code simpler.

if you find it's reasonable, i can try to make it work and make a PR.

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