Skip to content

Snippets/Templates #14

@e-kucheriavyi

Description

@e-kucheriavyi

Add snippets — custom templates for electrostatic. I. e. I need some card like this:

<details>
    <summary>%SUMMARY%</summary>
    <div>%CONTENT%</div>
</details>

But I don't want to copy-paste it in all my pages or have to change this markup in all my files. Instead I want to use something like this:

# Page H1

Some text that will be parsed as `<p>`

%SNIPPET:SNIPPET_NAME%
SUMMARY: Value
CONTENT:

Content value

Will be parsed as `<p>`

%/SNIPPET:SNIPPET_NAME%

This was just an example. It'll be good to research similar features of other SSG-engines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions