This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
Tracking Issue: Server-side rendering of directivesΒ #120
Closed
Description
openedon Dec 15, 2022
Based on #118 (comment) and #125.
β
- Implemented
π‘ - Waiting for an upcoming Gutenberg release to include a missing feature
β - Blocked by missing feature in WP_HTML_Tag_Processor
Name | Directive | Missing feature |
---|---|---|
wp-context |
β (#143) | |
wp-show |
π§ (#141) | Wrapping content inside HTML tags with extra tags. E.g. get_content_inside_balanced_tags() from WordPress/gutenberg#46345, and a matching set_content_inside_balanced_tags() (see WordPress/gutenberg#47036). |
wp-bind |
β (#133) | get_attribute_names_with_prefix() ; landed in GB 15.0 |
wp-class |
β (#133) | See wp-bind . |
wp-style |
β (#133) | See wp-bind . Furthermore, see WordPress/gutenberg#46887. (The latter isn't a blocker, though.) |
wp-text |
β (#170) | Replace content between HTML tags. See wp-show . |
wp-for / wp-each |
π§ (#166) | |
wp-html |
β (#170) | Replace content between HTML tags. See wp-show . |
wp-slot & wp-fill |
TODO:
- Properly parse expressions in attributes like
when
.- Includes nested JS-style objects (e.g.
context.myblock.open
). - Basic logic operations (negation, and, or)? Comparison?
- Includes nested JS-style objects (e.g.
- Add some directive/components registration mechanism.
- Maybe similar to blocks, patterns, etc?
register_directive
, takes a directory with adirective.json
which includes information such asattributes
,render
, context, ...?
- Maybe similar to blocks, patterns, etc?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels