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.

attribute-indentation options for `as` part

See original GitHub issue

Currently this is enforced:

{{#employee-details
  firstName=firstName
as |employee|
}}
  {{employee.fullName}}
{{/employee-details}}

However I really would prefer this:

{{#employee-details
  firstName=firstName
as |employee|}}
  {{employee.fullName}}
{{/employee-details}}

or this:

{{#employee-details
  firstName=firstName
  as |employee|
}}
  {{employee.fullName}}
{{/employee-details}}

could this be made configurable?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
rwjbluecommented, Oct 31, 2018

Ya, I totally agree with you, the as |foo|}} should be what we consider the closing by default. Having the }} on yet another separate line seems really annoying.

I would definitely love help pushing this forward…

1reaction
velrestcommented, Nov 19, 2018

Also for angle-bracket: Current:

<Component
  @name="something" as |c|
/>

Preferred:

<Component
  @name="test"
  as |c|
/>

or

<Component
  @name="test"
  as |c| />
Read more comments on GitHub >

github_iconTop Results From Across the Web

Indentation Level - Attribute
This numeric attribute indicates the level of indent of a line of verse (<verse-line>), relative to the entire verse or stanza (<verse-group>) in...
Read more >
Consistent list indentation - CSS: Cascading Style Sheets | MDN
First, we consider a single, pure list item. This list item has no marker (otherwise known as a "bullet") and is not yet...
Read more >
CSS text-indent property
The text-indent property specifies the indentation of the first line in a text-block. Note: Negative values are allowed. The first line will be...
Read more >
Word 2016 - Indentation Tutorial - How to Create a First Line ...
Indentation in Microsoft Word is useful for essays and citations. ... Form, and Report How To Use the Property Sheet Open and Save...
Read more >
Indentation | IntelliJ IDEA Documentation
Use the tab or space character for indentation and code formatting. ... When the option is on, the part of indentation defined by...
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