function rtm_admin_templates()
{
foreach (glob(RTMEDIA_PATH . 'app/admin/templates/*.php') as $filename) {
$slug = rtrim(basename($filename), '.php');
echo '<script type="text/html" id="' . esc_attr($slug) . '">';
include $filename;
echo '</script>';
}
}