Extracting HTML+HubL for Template Creation

Hi there,

Our goal is to extract the HTML and HubL code from an existing page to use it as a foundational template. This template will enable us to dynamically generate pages, automating the inclusion of data from our HubDB tables into each new page. This approach is essential for us as it eliminates the need for manually creating separate pages, which, although similar in appearance, contain different data sets.

We envision this template as a cornerstone for efficiently managing dynamic content, significantly reducing repetitive tasks, and enhancing our overall site maintenance.

If anyone has experience or insights on how to effectively accomplish this. Particularly the initial step of extracting HTML+HubL code to create a reusable template, I would greatly appreciate your guidance.

Thank you in advance.

Hi @Levi_STA

You can extract HTML + HubL from a page, though you would need to do this by section (instead of entire page at once).

HubSpot has documentation on how to achieve this here:

Hope this helps!

Hi @evaldas,
I appreciate the quick response!
Alright, well if that’s all there is then we’ll have to go for it haha.
It’s kinda the same, just some extra steps.

Sure thing! Depending on the page setup or theme, sometimes it may be possible to drop all the modules into one big section and then copy all of that - but, at the end of the day, it would probably be similar amount of clicks.

I personally even prefer copying by section as it makes it more digestible :slightly_smiling_face: