Skip to content

Documentation Page Needed on Frontend/Nunjucks/Templating #329

@JHWelch

Description

@JHWelch

I think there might be value in adding a separate page for different paths available for rending modules. Similar to the Logger or Notifications page

Before I PR'd #326 the word "Nunjucks" did not even appear in the docs at all.

This page would contain things like

  • The different available methods
    • Using getDom for building your own DOM imperatively.
    • Using getTemplate and getTemplateData
  • The available translate Nunjucks filter
  • Accessing the Nunjucks instance through nunjucksEnvironment.
  • How to add your own filters a la the weather module.

I would keep actual docs on Nunjucks fairly light, would mostly just link out directly to the Nunjucks docs for the how of it (conditionals, looping, etc)

Is this something there is appetite for?

I do not mind taking the first stab at this and PR-ing it, but I wanted to double check that this was wanted before taking the time for something more polished.

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