Add expiration specification
2 files changed, 15 insertions(+), 0 deletions(-) A specifications/twig-extensions/expiration/README.md A specifications/twig-extensions/expiration/spec.toml
A specifications/twig-extensions/expiration/README.md => specifications/twig-extensions/expiration/README.md +10 -0
@@ 0,0 1,10 @@ # Expiration Expiration encodes an expiration date-time. A node that contains this metadata field should not be valid/relevant after the encoded date-time. # Usage Expiration is designed to be somewhat atomic. It doesn't strictly rely on any other twig extensions and can be used as a building block for more complex behavior. An example API usage would check the expiration data/date and determine if the node is expired or not: `expiration.isExpired(node)`.
A specifications/twig-extensions/expiration/spec.toml => specifications/twig-extensions/expiration/spec.toml +5 -0