|
41 | 41 | "description": "A boolean option\nParameters:\n- value(boolean) Determines whether the checkbox is checked or unchecked",
|
42 | 42 | "prefix": "~boolean"
|
43 | 43 | },
|
| 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 | + }, |
44 | 51 | "call": {
|
45 | 52 | "body": [
|
46 | 53 | "{% call ${1:macro_name}(${2:argument_names}) %}\n$0\n{% endcall %}"
|
|
69 | 76 | "description": "Sets default content in an attribute of the content object, such as content.email_body",
|
70 | 77 | "prefix": "~content_attribute"
|
71 | 78 | },
|
| 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 | + }, |
72 | 86 | "cta": {
|
73 | 87 | "body": [
|
74 | 88 | "{% 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 | 330 | },
|
317 | 331 | "language_switcher": {
|
318 | 332 | "body": [
|
319 |
| - "{% language_switcher display_mode=\"${1:display_mode}\" %}" |
| 333 | + "{% language_switcher display_mode=\"${1:display_mode}\" order=\"${2:order}\" %}" |
320 | 334 | ],
|
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.", |
322 | 336 | "prefix": "~language_switcher"
|
323 | 337 | },
|
324 | 338 | "linked_image": {
|
|
440 | 454 | "description": "Insert custom HTML module\nParameters:\n- value(String) Sets the default content HTML of the module",
|
441 | 455 | "prefix": "~raw_html"
|
442 | 456 | },
|
| 457 | + "react_partial": { |
| 458 | + "body": [ |
| 459 | + "{% react_partial 'my_react_partial' %}" |
| 460 | + ], |
| 461 | + "description": "", |
| 462 | + "prefix": "~react_partial" |
| 463 | + }, |
443 | 464 | "related_blog_posts": {
|
444 | 465 | "body": [
|
445 | 466 | "{% 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