What's the best practice for using Include vs Render for snippets in landing pages?

Michael_Buglio
Tourist
13 0 2

I have a landing page that customize for each school we sell to.  The landing page template currently has the following:

{% assign SchoolName = page_title %}
{% include SchoolName %}

 

and that renders a snippet named for the school.  I create a snippet with the school name and custom information.

 

If I use {% render SchoolName %}

it does not work because render doesn't like variables.

 

Is there a better/not deprecated/best practice way to do this?

 

My snippets have a little bit of JS which work as snippets but not if I fully customize the landing page

 

Replies 0 (0)