Skip to content

Add attribute support to Text tags#53

Merged
philormand merged 1 commit into
guide-me:Philofrom
EroticDevelopment:issue-9
Oct 20, 2020
Merged

Add attribute support to Text tags#53
philormand merged 1 commit into
guide-me:Philofrom
EroticDevelopment:issue-9

Conversation

@EroticDevelopment
Copy link
Copy Markdown

Adds support for if-set, if-not-set, if-before, and if-after attributes to Text tags. Please note, attributes are only supported on the root <Text> tag, and not on sub-nodes such as <P> tags etc.

Perhaps somewhat obviously, this also means <Text> nodes can appear more than once in a <Page> now. Text nodes are concatenated in the order they appear, taking into consideration the conditional attributes. An abbreviated constructor needing only the text string was created on the Text model to aid in backwards compatibility and creating special pages (like the 404) on the fly.

You can use This Test Script (txt extension added to make GitHub happy) to test these new features.

Resolves #9

Adds support for if-set, if-not-set, if-before, and if-after attributes
@philormand philormand merged commit 68012d2 into guide-me:Philo Oct 20, 2020
@EroticDevelopment EroticDevelopment deleted the issue-9 branch October 23, 2020 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants