HomePhorge

Fix rendering of cowsay sheep.cow

Description

Fix rendering of cowsay sheep.cow

Summary:
In the templates of the external cowsay library, most replaceable tokens are specified as $var_name.
However, the sheep.cow and flaming-sheep.cow use the ${eyes} syntax instead. This is not recognised by PhutilCowsay.php resulting in incorrect rendering of the template.

This change updates PhutilCowsay.php to handle ${var_name} tokens as well as $var_name

___________________ < My eyes, my eyes! > ------------------- \ \ __ U${eyes}U\.'@@@@@@`. \__/(@@@@@@@@@@) (@@@@@@@@) `YY~~~~YY' || ||

Test Plan:
In a Remarkup comment or document, add

cowsay(cow='sheep'){{{How do my eyes look now?}}}

When testing in differential, you don't even need to submit the comment.

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25435

Details

Provenance
StenAuthored on Mon, Sep 11, 10:06
StenPushed on Tue, Sep 12, 14:57
Reviewer
O1: Blessed Committers
Differential Revision
D25435: Fix rendering of cowsay sheep.cow
Parents
rARCd343be59269a: Error handling: send Deprecation messages as explicit Event
Branches
Unknown
Tags
Unknown
References
HEAD -> master