To make my tease creation process faster I'm creating a text parser and an interpreter to be able to write teases as text that would then be interpreted and rendered in eos.
It still relies on eos and thus is limited by the features eos offers (no access to the DOM, not being able to create notifications in javascript). But new features can be added with workarounds (for example: persistent notifications, loops, ...)
I'm in the early stages and quickly created a first version of both parser and interpreter. There are still bugs and non implemented feature.
I wanted to get an early idea if some of you would be interested and would use it if I made it publicly available. In that case we could discuss together what other interesting features could be added and how to improve the pseudocode.
Also this interpreter can be used for only parts of the tease (ex: 1 or 2 pages) while still having the rest of the tease written as usual.
Here are some advantages / disadvantages:
Advantages:
- Quicker to write
- Quickly change the default settings that get applied to the whole tease / page (ex: allowSkip, timerDuration, etc)
- Possibility let the user change the default settings
- Persistent notifications
- Easy to create different routes
- Easy to use random texts and alternative texts
- In the future: Loops
- Text disappears after each line
- Need to add notifications manually and give them a unique Id
- Need to learn the pseudocode
- Boilerplate things to add (give images and id) => this might be automated in the future
A text written like this:
- Spoiler: show
- Spoiler: show


