var showTemplateDialog$name = function() {
  var dialog = document.getElementById('my-dialog-$name');

  if (dialog) {
    dialog.show();
  } else {
    ons.createElement('dialog-$name.html', { append: true })
      .then(function(dialog) {
        dialog.show();
      });
  }
};

var hideDialog$name = function(id) {
  document
    .getElementById(id)
    .hide();
};