Skip to content

Commit 4b61c69

Browse files
author
github-actions
committed
Add updated snippets
1 parent 2a4498c commit 4b61c69

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

Diff for: snippets/auto_gen/hubl_functions.json

+7
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,13 @@
475475
"description": "Returns a landing or website page by id\nParameters:\n- page_id(id) The id of the page to look up",
476476
"prefix": "~page_by_id"
477477
},
478+
"personalization_api_url": {
479+
"body": [
480+
"personalization_api_url(${1:contact_properties}, ${2:company_properties})"
481+
],
482+
"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.",
483+
"prefix": "~personalization_api_url"
484+
},
478485
"personalization_token": {
479486
"body": [
480487
"personalization_token(${1:expression}, ${2:default})"

Diff for: snippets/auto_gen/hubl_tags.json

+23-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
"description": "A boolean option\nParameters:\n- value(boolean) Determines whether the checkbox is checked or unchecked",
4242
"prefix": "~boolean"
4343
},
44+
"break": {
45+
"body": [
46+
"{% for item in [1, 2, 3, 4] %}{% if item > 2 == 0 %}{% break %}{% endif %}{{ item }}{% endfor %}"
47+
],
48+
"description": "Stops executing the current for loop, including any further iterations",
49+
"prefix": "~break"
50+
},
4451
"call": {
4552
"body": [
4653
"{% call ${1:macro_name}(${2:argument_names}) %}\n$0\n{% endcall %}"
@@ -69,6 +76,13 @@
6976
"description": "Sets default content in an attribute of the content object, such as content.email_body",
7077
"prefix": "~content_attribute"
7178
},
79+
"continue": {
80+
"body": [
81+
"{% for item in [1, 2, 3, 4] %}{% if item % 2 == 0 %}{% continue %}{% endif %}{{ item }}{% endfor %}"
82+
],
83+
"description": "Stops executing the current iteration of the current for loop",
84+
"prefix": "~continue"
85+
},
7286
"cta": {
7387
"body": [
7488
"{% 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}\" %}"
@@ -316,9 +330,9 @@
316330
},
317331
"language_switcher": {
318332
"body": [
319-
"{% language_switcher display_mode=\"${1:display_mode}\" %}"
333+
"{% language_switcher display_mode=\"${1:display_mode}\" order=\"${2:order}\" %}"
320334
],
321-
"description": "Language switcher\nParameters:\n- display_mode(enum localized|pagelang|hybrid) The language of the text in the language switcher. Pagelang means the names of languages will display in the language of the page the switcher is on. Localized means the name of each language will display in that language. Hybrid is a combination of the two.",
335+
"description": "Language switcher\nParameters:\n- display_mode(enum localized|pagelang|hybrid) The language of the text in the language switcher. Pagelang means the names of languages will display in the language of the page the switcher is on. Localized means the name of each language will display in that language. Hybrid is a combination of the two.\n- order(enum default|natural) Determines the display order of languages. The 'default' order places the selected language at the top of the sorted list, while the 'natural' order maintains a fixed sequence and adds the 'lang_switcher_selected' class to the selected language.",
322336
"prefix": "~language_switcher"
323337
},
324338
"linked_image": {
@@ -440,6 +454,13 @@
440454
"description": "Insert custom HTML module\nParameters:\n- value(String) Sets the default content HTML of the module",
441455
"prefix": "~raw_html"
442456
},
457+
"react_partial": {
458+
"body": [
459+
"{% react_partial 'my_react_partial' %}"
460+
],
461+
"description": "",
462+
"prefix": "~react_partial"
463+
},
443464
"related_blog_posts": {
444465
"body": [
445466
"{% 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}\" %}"

0 commit comments

Comments
 (0)