Skip to content

Favour the tag syntax above the moustache for templating #11

Closed
@wbijker

Description

@wbijker

It would be much easier if alignment and number of digits could be defined in the template itself and not only by programatically means in document setting.

Cons for moustache syntax.
sample: {{ documentpages }}

  1. It only serves as an identifier to replace text. No extras or parameters.
  2. Replacement is inefficient as you need to replace the whole body's innerHTML.
  3. It looks funny when designing and most of the time the length of the moustache tag is not a accurate reflection of the actual content being replaced.

Pros for tag syntax:
sample: 1

  1. You can associate multiple data elements to the tag without funny parsing and rules.
  2. Most structured and efficient to replace tags rather than text.
  3. Design friendly as the text portion only carries design payload.
  4. 100% compatible with HTML and your IDE / editor. is a legitimate tag

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