HomePhabricator

Add an "eval" rule to Remarkup

Description

Add an "eval" rule to Remarkup

Summary:
Ref T13658. This adds a simple expression evaluator to Remarkup and supports platform name expressions. The syntax is:

${{{strings.platform.server.name}}}

Note that this won't work inside code blocks (or literal blocks, or other block-level literal elements) right now, although it could be made to selectively (the ".path" expressions might be useful in documentation codeblocks).

Test Plan:

Screen Shot 2021-07-27 at 2.03.04 PM.png (881×675 px, 65 KB)

Reviewers: cspeckmim

Reviewed By: cspeckmim

Maniphest Tasks: T13658

Differential Revision: https://secure.phabricator.com/D21713

Details

Provenance
epriestleyAuthored on Jul 27 2021, 9:02 PM
epriestleyPushed on Jul 29 2021, 11:46 PM
Reviewer
cspeckmim
Differential Revision
D21713: Add an "eval" rule to Remarkup
Parents
rPcc8cbed02941: Make "DifferentialDiff->properties" a proper "attachable" property
Branches
Unknown
Tags
Unknown
Tasks
T13658: How to rebrand Phabricator
Build Status
Buildable 25530
Build 35300: Run Core Tests