*-hsmeta.json
configuration files in your project. Learn more about app configuration in the reference documentation.
/my-theme/images/examplefile.jpg
). You can nest files within another folder by including those folders in the path..functions
folder that contains boilerplate serverless.js
and serverless.json
files. You can add another serverless function to the folder by right-clicking the folder, then selecting New serverless function.cmd
+ shift
+ p
.*html
: html-hubl
*css
: css-hubl
{% %}
, {# #}
, and {{ undefined.undefined }}
delimiters.cmd
+ /
.html-hubl
files, map html-hubl
to html
in your Emmet settings:
cmd
+ shift
+ p
.html-hubl
: html
.cmd
+ shift
+ p
.
div
produces divisibleby
.|
followed by the filter, then press Enter. For example, typing |se
produces |selectattr('attr', exp_test)
.~
followed by the function or tag, then press Enter. For example, typing ~hub
produces hubdb_table_rows(${table_id}
.content.ab
produces {{ content.absolute_url
}}
.ri
produces:Snippet prefix | Description | Example |
---|---|---|
otrue | Generates overrideable=True for HubL tags. | overrideable=True |
ofalse | Generates overrideable=False for HubL tags. | overrideable=False |
for | Returns a basic for loop. | {% for iterable in dict %}``{{ iterable }}``{% endfor %} |
if | Returns a basic if statement. | {% if {condition} %} do_something {% endif %} |
elif | Returns an else if statement to be used within an if statement. | {% elif {condition} %} |
else | Returns an else statement to be used within an if statement. | {% else %} |
hubldoc | Returns a boilerplate HTML + HubL document. | |
hublblog | Returns boilerplate blog markup. |
{% include "... %}
{% import "... %}
{% tag_name path="... %}
{% extend "... %}
cmd
+ shift
+ p
.