algovelo - Template engine for Algorithmia

Template engine based on Apache Velocity is ready for using on Algorithmia.

Algorithmia Platform License
apl
· Internet Access

This algorithm has Internet access.

This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.

Run an Example

"{\"isError\":false,\"errorMessage\":\"Merging is completed successfully!\",\"errorCode\":\"Success\",\"results\":{\"outputFile\":\"data://.algo/magicanded/algovelo/temp/algovelo-output6221648265180786356.html\",\"inline\":\"\\u003chtml\\u003e\\n\\u003cbody\\u003e\\n\\u003cp\\u003e\\u003cb\\u003eHello world\\u003c/b\\u003e\\u003c/p\\u003e\\n\\u003cp\\u003e\\u003ci\\u003eGood morning\\u003c/i\\u003e\\u003c/p\\u003e\\n\\u003cp\\u003e\\u003ci\\u003ealgoId: \\u003c/i\\u003e\\u003cspan\\u003e3e8de5b326b7480e8dbd264d83d9d585\\u003c/span\\u003e\\u003c/p\\u003e\\n\\u003c/body\\u003e\\n\\u003c/html\\u003e\\n\",\"outputFileUrl\":\"https://algorithmia.com/v1/data/.algo%2Fmagicanded%2Falgovelo%2Ftemp%2Falgovelo-output6221648265180786356.html\"},\"uuids\":[{\"name\":\"algoId\",\"value\":\"3e8de5b326b7480e8dbd264d83d9d585\"}]}"

Install & Use

Use

curl -X POST -d '{
  "inputFile": "data://magicanded/public/algovelo-template.htm",
  "variables": {
    "title": "Hello world",
    "deep": {
      "title": "Good morning"
    }
  },
  "uuids": [
    "algoId"
  ],
  "inline": "yes"
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/magicanded/algovelo/0.2.7