Ember detection and snippets