Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
Create fixed width output using Hadlebarjs

Im trying to use Handlebarsjs to create fixed width text output. I need to have fixed width that is set; ie 60 characters and operate within that boundary. If the variable width extends over that limit I need to put it on the next line. Indicate that it continues there. If the variable is less than boundary I need to fill the remaining space with white space characters and close the section with its closing tag.

template example:

  /* ---------------------------------------------------- */
  /* Row1: {{var1}}                                       */
  /* Row2: {{var2}}                                       */
  /* ---------------------------------------------------- */

should output:

  /* ---------------------------------------------------- */
  /* Row 1: Fits within row limit                         */
  /* Row 2: Doe not fit within row limit because it is too+
  long                                                    */
  /* ---------------------------------------------------- */

What are the best options to do this using Handlebarsjs?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!