starter-postmark icon indicating copy to clipboard operation
starter-postmark copied to clipboard

Data not being processed by posthtml

Open fcpauldiaz opened this issue 1 year ago • 1 comments

The company data is not being correctly shown

module.exports = {
  build: {
    posthtml: {
      expressions: {
        delimiters: ['[[', ']]'],
        unescapeDelimiters: ['[[[', ']]]'],
      }
    },
    templates: {
      source: 'src/templates',
      destination: {
        path: 'build_local',
      },
    },
  },
  company: {
    name: '[Company Name, LLC]',
    address: `
    <br>1234 Street Rd.
    <br>Suite 1234
    `,
    product: '[Product Name]',
    sender: '[Sender Name]',
  },
  year: () => new Date().getFullYear(),
}

Screenshot 2024-05-26 at 3 07 16 PM

fcpauldiaz avatar May 26 '24 21:05 fcpauldiaz

Since it is working fine as part of the footer, but not in the main template I noticed that this seems to be caused by the <raw> tag used by the templates. Removing the <raw> fixes the issue for me.

https://v3.maizzle.com/docs/tags/#raw

Finkes avatar May 31 '24 15:05 Finkes