{"result":{"depiction_url":null,"edges":{"references":{"objects":[{"created":"2020-05-30T05:47:36Z","object_id":{"id":1279,"is_a":["text","documentation"],"name":"doc_glossary","title":"Glossary","uri":"https:\/\/zotonic.com\/id\/1279"},"seq":1000000}],"predicate":{"id":332,"is_a":["meta","predicate"],"name":"references","title":{"_type":"trans","tr":{"en":"References"}},"uri":"https:\/\/zotonic.com\/id\/references"}},"subject":{"objects":[{"created":"2026-09-09T13:48:29Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:29Z","object_id":{"id":2563,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_frontend_developer","title":"Frontend developer","uri":"https:\/\/zotonic.com\/id\/2563"},"seq":2},{"created":"2026-09-09T13:48:29Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":3},{"created":"2026-09-09T13:48:29Z","object_id":{"id":2620,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_template","title":"Template","uri":"https:\/\/zotonic.com\/id\/2620"},"seq":4},{"created":"2026-09-09T13:48:29Z","object_id":{"id":2641,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_render","title":"Render","uri":"https:\/\/zotonic.com\/id\/2641"},"seq":5},{"created":"2026-09-09T13:48:29Z","object_id":{"id":2670,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_erlang_otp","title":"Erlang\/OTP","uri":"https:\/\/zotonic.com\/id\/2670"},"seq":6}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1358,"is_a":["text","documentation","reference","template_tag"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1358"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_tag_tag_call","page_url":{"en":"https:\/\/zotonic.com\/docs\/1358\/call","x-default":"https:\/\/zotonic.com\/docs\/1358\/call"},"preview_url":null,"resource":{"version":3355,"pivot_location_lat":null,"title":"call","is_authoritative":true,"body":"<p>Call an Erlang function.<\/p>\n<p>The <code>{% call %}<\/code> tag is used to call the <code>render\/3<\/code> function of the module specified by the argument.<\/p>\n<p>For example:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">{% call mymodule a=1 b=2 %}\n<\/code><\/pre>\n<p>Will call <code>mymodule:render([{a,1}],[{b,2}], TemplateVariables, Context)<\/code>. Where TemplateVariables is the map with all template variables and Context is the current Zotonic request <a href=\"\/id\/doc_glossary#term-context\">context<\/a>.<\/p>\n<p>The render\/2 function must return either <code>{ok, IoList}<\/code> or <code>{error, Reason}<\/code>.<\/p>\n<p>If <code>{error, Reason}<\/code> is returned then the <code>Reason<\/code> is rendered as <code>io_lib:format(&quot;~p&quot;, [Reason])<\/code><\/p>\n<p>For compatibility with Django it is possible to pass a single value instead an argument list:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">{% call mymodule with value %}\n<\/code><\/pre>\n<p>This will call <code>mymodule:render(Value, TemplateVariables, Context)<\/code>.<\/p>","slug":"call","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"e1fda5866d4192ed69ee6c51258aaee6b95128be409262c21c946bf0f756101e","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":324,"is_a":["meta","category"],"name":"template_tag","title":"Tags","uri":"https:\/\/test.zotonic.com\/id\/324"},"doc_source_path":"doc\/template-tags\/call.md","publication_start":"2023-01-30T19:23:58Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/doc\/template-tags\/call.md","pivot_location_lng":null,"doc_source_kind":"template_tag","name":"doc_template_tag_tag_call","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:19Z","uri":null,"doc_status":"current","is_dependent":false,"publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"c19e5c894d3bd01b57581e2af43e176d42c6877a\n","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-08T10:41:25Z","title_slug":"call"},"uri":"https:\/\/zotonic.com\/id\/1358","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1358"}},"status":"ok"}