I'm trying to learn the basics of how to use Scriban to customize Sitecore SXA components. I'm having trouble finding any complete walk-throughs or training that provides a full example start to finish. Does anyone have recommendations on a good place to start?
Ideally, I'd like to learn if I can use Scriban to create a mega menu-style navigation component, but even a simpler example like displaying a list of links would be helpful.
I tried to start with this code snippet I found in the Sitecore documentation, but I get an error that i_datasource is null. Where do I set the datasource? Or, is the datasource automatically the component that is being used? My Scriban renderer in this example is based on the Navigation component.
{{ for i_child in i_datasource.children }}
<a href="{{ i_child.url }}">{{ i_child.Title }}</a><br/>
{{ end }}