<# call "http://www.nactem.ac.uk/software/acromine/dictionary.py?sf=<#[get.sf as url]#>" to response; #> <ul> <h3><#[get.sf as uppercase as html]#></h3> <# start loop for response.0.lfs; #> <li><# value.lf as html #></li> <# end loop #> </ul>
<# print bucket response; #>
response: Array ( )
<#[response.0.lfs.0.lf as html]#> ⇒ |
The Hashtag Markup Language provides methods to Call external APIs, and process any response.
The response text is saved to the named Hashtag Variable. If the response is JSON encoded, it will be decoded into Hashtag Buckets.
Optional parameters can be sent with the call. The values in the named Hashtag Bucket will be sent with the request as HTTP POST variables.