Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Substitute include blocks before preprocessing #114

Merged
merged 144 commits into from
Jan 19, 2021
Merged

Substitute include blocks before preprocessing #114

merged 144 commits into from
Jan 19, 2021

Conversation

emmiegit
Copy link
Member

@emmiegit emmiegit commented Jan 17, 2021

As discussed on the FTML-49 issue and in chat, we will need to parse and substitute [[include]] blocks before preprocessing, tokenization, or any of the other steps. It's unfortunate we can't make use of the regular parse process for this, but it is necessary for compatibility with how Wikidot uses includes, and is implemented here with a goal of minimal intrusiveness.

@emmiegit
Copy link
Member Author

@emmiegit
Copy link
Member Author

Updated ftml-http to go through the whole process. Now to update docs regarding it, and make give the README me one more look over.

@emmiegit emmiegit marked this pull request as ready for review January 19, 2021 05:31
@emmiegit
Copy link
Member Author

Finally, after a long time, [[include]] blocks are replaced properly. This PR has tests for the various cases, block handling if it's not substituted, remote error handling, a sample HTTP server to return page responses, checks for missing and extant pages, and jinja2-like formatting for missing page messages.

@emmiegit emmiegit merged commit b1e881c into master Jan 19, 2021
@emmiegit emmiegit deleted the FTML-49 branch January 19, 2021 05:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant