smogger914
9 years agoGuide
Previewing response of REST call
Lets say I am doing something like:
<#assign recent = rest("/boards/id/somethingcool/topics/recent")/>
Simply doing:
${recent} throws me an error in the template.
Is there a way I can print out what is assighned to the recent variable in the preview / what is the best way to debug what is going on in the template and data that is being gathered?
smogger914 - You need to use restd to make this call.
<#assign recent = restd("/boards/id/somethingcool/topics/recent")/>
I hope this helps.