Handlebars.js how to add custom helpers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TitasB
    Member
    • Aug 2017
    • 31

    #1

    Handlebars.js how to add custom helpers

    Hello,

    I need to add a custom block helper to Handlebars.js, but I can't find the file where to add it, could you please help?
    Last edited by TitasB; 09-13-2017, 09:09 PM.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello

    client/src/view-helper.js

    Comment

    • TitasB
      Member
      • Aug 2017
      • 31

      #3
      I did register a custom helper, but none of the custom helpers (including those that were already there) work in PDF templates.

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        templates for PDF are parsed with LightnCandy

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          From the next version will be available ifEqual and IfNotEqual helpers
          EspoCRM – Open Source CRM Application. Contribute to espocrm/espocrm development by creating an account on GitHub.

          Comment

          Working...