Skip to content

Instantly share code, notes, and snippets.

@twhitbeck
Last active March 18, 2021 18:32
Show Gist options
  • Save twhitbeck/78d7c76eb348fc018a9609a52fbbb454 to your computer and use it in GitHub Desktop.
Save twhitbeck/78d7c76eb348fc018a9609a52fbbb454 to your computer and use it in GitHub Desktop.
New Twiddle
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
<div>
<p>Whitespace in link and before comma (not desirable)</p>
<a href="">
Foo
</a>
,
<a href="">
Bar
</a>
<hr>
<p>Whitespace in link but not before comma (still no good)</p>
<a href="">
Foo
</a>,
<a href="">
Bar
</a>
<hr>
<p>No whitespace (there we go, but prettier doesn't let us have this)</p>
<a href="">Foo</a>,
<a href="">Bar</a>
<hr>
<p>Hacky fix (ew! and probably prettier won't let us do this, either)</p>
<a href="">{{!
}}Foo{{!
}}</a>{{!
}},
<a href="">{{!
}}Bar{{!
}}</a>
<hr>
<p>Another hacky fix (ew again! but prettier probably can't mess this up)</p>
<a href="">
{{~! remove whitespace plz ~}}
Foo
{{~! remove whitespace plz ~}}
</a>
{{~! remove whitespace plz ~}}
,
<a href="">
{{~! remove whitespace plz ~}}
Bar
{{~! remove whitespace plz ~}}
</a>
</div>
{
"version": "0.17.1",
"EmberENV": {
"FEATURES": {},
"_TEMPLATE_ONLY_GLIMMER_COMPONENTS": false,
"_APPLICATION_TEMPLATE_WRAPPER": true,
"_JQUERY_INTEGRATION": true
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js",
"ember": "3.18.1",
"ember-template-compiler": "3.18.1",
"ember-testing": "3.18.1"
},
"addons": {
"@glimmer/component": "1.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment