Skip to content

Instantly share code, notes, and snippets.

@croxton
Created March 22, 2012 10:49
Show Gist options
  • Save croxton/2157654 to your computer and use it in GitHub Desktop.
Save croxton/2157654 to your computer and use it in GitHub Desktop.
Passing a tag as a parameter - best practice
Put parameters on separate lines, and be consistent in the use of quotes: double quotes for params on the main tag, single quotes for params in the tag passed as a parameter:
{exp:stash:set_value
name="ref"
type="snippet"
output="no"
value="{exp:stash:get name='ref_{entry_id}' type='snippet'}"
parse="inward"
}
@erikreagan
Copy link

Exactly how we do it. Glad you took a minute to write it down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment