예제 #1
0
 /**
  * Handle event.
  *
  * @return void
  */
 public function handle()
 {
     $asset = $this->asset->container('orchestra/foundation::footer');
     $asset->script('simplemde', 'packages/orchestra/story/vendor/simplemde/simplemde.min.js');
     $asset->style('simplemde', 'packages/orchestra/story/vendor/simplemde/simplemde.min.css');
     $asset->script('storycms', 'packages/orchestra/story/js/storycms.min.js');
     $asset->script('storycms.md', 'packages/orchestra/story/js/markdown.min.js', ['simplemde']);
 }
예제 #2
0
 /**
  * Get an asset container instance.
  * 
  * <code>
  *     // Get the default asset container
  *     $container = Orchestra\Asset::container();
  * 
  *     // Get a named asset container
  *     $container = Orchestra\Asset::container('footer');
  * </code>
  *
  * @param string $container
  * @return \Orchestra\Asset\Asset 
  * @static 
  */
 public static function container($container = 'default')
 {
     return \Orchestra\Asset\Factory::container($container);
 }