Skip to content

Instantly share code, notes, and snippets.

@brentjett
Last active August 29, 2015 14:20
Show Gist options
  • Save brentjett/88ed38f756e9ac79cbe6 to your computer and use it in GitHub Desktop.
Save brentjett/88ed38f756e9ac79cbe6 to your computer and use it in GitHub Desktop.
Template Enqueue Scratchwork
/*
Basset Theme
Template Enqueue Scratchwork
The idea is to allow a template file to declare it's own dependancies using a comment header similar to the style.css file or plugins.
*/
// Template index.php
<?php
/*
Template Name: Blog
Styles: main, another
Scripts: jquery, main.js
Wrapper Template: wrapper.php
*/
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment