Skip to content

Commit

Permalink
Update oafp-examples.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar authored Feb 1, 2025
1 parent 36bf3fc commit 7943dff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion oafp-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1109,4 +1109,9 @@ data:
s: URL
d: Given an URL to a resource on a website determine how long ago is was modified given the data provided by the server.
e: |-
URL="https://openaf.io/openaf.jar" && oafp url="$URL" urlmethod=head path="response.timeago(to_ms(\"last-modified\"))"
URL="https://openaf.io/openaf.jar" && oafp url="$URL" urlmethod=head path="response.timeago(to_ms(\"last-modified\"))"
- c: Generic
s: HTML
d: Given an input file, in a specific language (e.g. yaml, json, bash, etc...), output an HTML representation with syntax highlighting.
e: |-
OUT=yaml && FILE=data.yaml && oafp file=$FILE in=raw outkey=data out=json | oafp out=template templatetmpl=true template="\`\`\`$OUT\n{{{data}}}\n\`\`\`" | oafp in=md out=html

0 comments on commit 7943dff

Please sign in to comment.