Skip to content

How should we handle global template variables? #114

@allejo

Description

@allejo

Since the release of 0.2.0, the following template variable names are reserved and managed by stakx.

  • this
  • site
  • data
  • collections
  • menu
  • pages
  • repeaters

PR #113 introduces a new redirects global variable, which could conflict with any existing templates that use redirects as a variable name; this is a huge problem for BC. How should this be handled?

  1. Follow Jekyll and stuff everything into site
    • However, this poses the exact same problem but with site conflicting with configuration file keys.
  2. Global variables are prefixed so they become stakx_site or stakx.site
  3. Cross our fingers and hope no one complains or has used redirects as a variable name

Metadata

Metadata

Assignees

No one assigned

    Labels

    MetaAdministrative stuff for the projectRFCWe need feedback on a topic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions