I need to create single template based on the name parameter fetced from url

So I created list.html template and fetched data from the URL. Now I need a single page about each product fetched. I listed them all like this
<li><a class="dropdown-item" href="{{ printf "/pricing/%s" .Name }}">{{ .Name }}</a></li>
How can I now create single template with the Name parameter in the URL?

It sounds like you are trying to create pages from data. If so, this might be useful:


cc @regis

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.