Last modified: August 22, 2025
The following is a list of HubL filters and functions that are deprecated. While these filters and functions still operate as intended, they’ve been replaced by newer ones that are more streamlined and optimized.
For all new and future projects we encourage using our current HubL functions instead of deprecated ones.
Deprecated filters
The following filters have been deprecated:
{{ content.updated|datetimeformat("%B %e, %Y") }}
{{ content.publish_date|datetimeformat("%B %e, %Y %l %p") }}
{{ content.publish_date|datetimeformat("%B %e, %Y %l %p", "America/Los_Angeles") }}
{{ content.publish_date|datetimeformat("%B %e, %Y %l %p", "America/Los_Angeles", "es-US") }}
{% set price = 100 %}
{{ price|format_currency("en-US") }}
{{ price|format_currency("fr-FR") }}
{{ price|format_currency("jp-JP", "JPY", true) }}
Deprecated functions
The following functions have been deprecated:
blog_post_by_id
{% set my_post = blog_post_by_id(4715624297) %}
<ul>
<li>
<a href="https://developers.hubspot.com/docs{{ my_post.absolute_url }}">{{my_post.title}}</a>
</li>
</ul>
blog_topics
{{ blog_topics("default", 250) }}
{% set my_tags = blog_topics("default", 250) %}
<ul>
{% for item in my_tags %}
<li><a href="https://developers.hubspot.com/docs{{ blog_tag_url(group.id, item.slug) }}">{{ item }}</a></li>
{% endfor %}
</ul>
blog_recent_topic_posts
{{ blog_recent_topic_posts("default", "culture", 5) }}
{{ datetimeformat(content.publish_date_local_time, "%B %e, %Y") }}
get_public_template_url
{{ get_public_template_url("custom/page/Designers_2015/designer-doc-2105.js") }}
include_css
{{ include_css("custom/page/Designers_2015/designers-doc-2015.css") }}
include_javascript
{{ include_javascript("custom/page/Designers_2015/designer-doc-2105.js") }}
page_by_id
{% set my_page = page_by_id(4715624297) %}
<ul>
<li>
<a href="https://developers.hubspot.com/docs{{ my_page.absolute_url }}">{{ my_page.title }}</a>
</li>
</ul>