question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handlebars inline formatting

See original GitHub issue

Description

Handlebars inline tags not formatted probably

Input

The code looked like this before beautification:

{{title "abc"}}
{{log "abc"}}

Expected Output

The code should have looked like this after beautification:

{{title "abc"}}
{{log "abc"}}

Actual Output

The code actually looked like this after beautification:

{{title "abc"}}{{log "abc"}}

Steps to Reproduce

When writing many handlebars tags inline like the following {{title “abc”}}{{log “abc”}} VSCode formatter (Alt+Shift+F) adds all inline tags in the same line and no way to configure the editor to add each tag on a single line which is very annoying

Environment

OS: Windows_NT ia32 6.1.7601

Settings

Example:

{
    "html.format.indentHandlebars": true,
    "editor.formatOnSave": true,
    "html.format.endWithNewline": true,
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
v3ss0ncommented, Apr 9, 2017

We need handlebars support !!

0reactions
MacKLesscommented, Aug 31, 2018

This has been fixed as of v1.8.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inserting handlebars in an inline style - Stack Overflow
So I am trying to add a partial {{> img-bg}} inside an inline style (just to keep ...
Read more >
Using Inline Partials and Decorators with Handlebars 4.0
First, take the code you want to be your partial. Then wrap it with the new inline syntax, passing one argument which is...
Read more >
Expressions | Handlebars
Handlebars content may be escaped in one of two ways, inline escapes or raw block helpers. Inline escapes created by prefixing a mustache...
Read more >
Styling handlebars with inline CSS? - Codecademy Forums
I'm not familiar with handlebars so I'm looking for help/information on how to style the data pulled from the handlebars with inline CSS...
Read more >
Handlebars - Advanced: How to Add Conditional Formatting
You can accomplish this by testing if the answer equals a certain value, and then using inline CSS formatting to change the background...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found