Skip to content

Commit

Permalink
Add updated snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 23, 2024
1 parent 2a4498c commit 4c4a5be
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snippets/auto_gen/hubl_functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,13 @@
"description": "Returns a landing or website page by id\nParameters:\n- page_id(id) The id of the page to look up",
"prefix": "~page_by_id"
},
"personalization_api_url": {
"body": [
"personalization_api_url(${1:contact_properties}, ${2:company_properties})"
],
"description": "Generates a signed URL path and query string to the Content Personalization API, specific to the hubid and provided properties parameters. Any changes to the 'contactProperties' or 'companyProperties' parameters will require generating a new signed URL with an updated 'sig' parameter. Note that no signature is required if no company or contact properties will be requested.\nParameters:\n- contact_properties(comma-delimited string) The list of contact properties to request. Additionally, a contact's list (CLS) memberships and ILS memberships can be requested as 'listMemberships' and 'ilsMemberships' respectively.\n- company_properties(comma-delimited string) The list of company properties to request.",
"prefix": "~personalization_api_url"
},
"personalization_token": {
"body": [
"personalization_token(${1:expression}, ${2:default})"
Expand Down
21 changes: 21 additions & 0 deletions snippets/auto_gen/hubl_tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
"description": "A boolean option\nParameters:\n- value(boolean) Determines whether the checkbox is checked or unchecked",
"prefix": "~boolean"
},
"break": {
"body": [
"{% for item in [1, 2, 3, 4] %}{% if item > 2 == 0 %}{% break %}{% endif %}{{ item }}{% endfor %}"
],
"description": "Stops executing the current for loop, including any further iterations",
"prefix": "~break"
},
"call": {
"body": [
"{% call ${1:macro_name}(${2:argument_names}) %}\n$0\n{% endcall %}"
Expand Down Expand Up @@ -69,6 +76,13 @@
"description": "Sets default content in an attribute of the content object, such as content.email_body",
"prefix": "~content_attribute"
},
"continue": {
"body": [
"{% for item in [1, 2, 3, 4] %}{% if item % 2 == 0 %}{% continue %}{% endif %}{{ item }}{% endfor %}"
],
"description": "Stops executing the current iteration of the current for loop",
"prefix": "~continue"
},
"cta": {
"body": [
"{% cta embed_code=\"${1:embed_code}\" full_html=\"${2:full_html}\" image_src=\"${3:image_src}\" image_editor=\"${4:image_editor}\" guid=\"${5:guid}\" cta_id=\"${6:cta_id}\" image_html=\"${7:image_html}\" image_email=\"${8:image_email}\" %}"
Expand Down Expand Up @@ -440,6 +454,13 @@
"description": "Insert custom HTML module\nParameters:\n- value(String) Sets the default content HTML of the module",
"prefix": "~raw_html"
},
"react_partial": {
"body": [
"{% react_partial 'my_react_partial' %}"
],
"description": "",
"prefix": "~react_partial"
},
"related_blog_posts": {
"body": [
"{% related_blog_posts blog_ids=\"${1:blog_ids}\" blog_post_ids=\"${2:blog_post_ids}\" blog_post_override=\"${3:blog_post_override}\" limit=\"${4:limit}\" tags=\"${5:tags}\" start_date=\"${6:start_date}\" end_date=\"${7:end_date}\" blog_authors=\"${8:blog_authors}\" path_prefixes=\"${9:path_prefixes}\" post_formatter=\"${10:post_formatter}\" featured_image_resize_options=\"${11:featured_image_resize_options}\" allow_any_language=\"${12:allow_any_language}\" tag_boost=\"${13:tag_boost}\" %}"
Expand Down

0 comments on commit 4c4a5be

Please sign in to comment.