~whereswaldon/arborchat

ref: a510daa9b98c67bfc1487c08508a095070acf61b arborchat/specifications/twig-extensions/expiration/README.md -rw-r--r-- 463 bytes
a510daa9Andrew Thorp Add expiration specification 7 months ago

#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).