Snippets allow you to customize content on your pages and in your mailings. You can see a full list of snippets that are available and how to use them in the documentation. Another way to look up what snippets are available on your page or mailing, we have a convenience tag called {% log_context %}.
To use {% log_context %} for pages, enter it in some portion of your page text like a statement lead in, then when you’re using the templateset previewer and check the Javascript console in your browser, you can see that there’s an object to leaf through and see what’s available.
Note that you won’t see the real data itself when using {% log_context %} – it’s intended as a “what’s snippets are available to use on this page or mailing” rather than a key-value store of all of the data. Each of the Object’s keys are the snippets you can use.
Whenever you see <type ‘instancemethod’>, that’s a sign that you could use a snippet to get more data from it. It’s an instancemethod (rather than the data itself) because we’re doing some work behind the scenes to generate or calculate that data, but at least you know what’s available.
You can also often use .as_dict to get a nice representation of the object (as a representation of a Python dictionary), like {{ page.as_dict }}.
To use {% log_context %} for mailings, include it in your mailing body and then check the Javascript console in your browser to find the object you’ll look through.
Interested in scheduling a demo with ActionKit? Let us know!