Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

119
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda