Skip to content

Commit

Permalink
Remove peripheral stuff and make the extension baseline only
Browse files Browse the repository at this point in the history
  • Loading branch information
GwendolenLynch committed Mar 20, 2016
1 parent c81457f commit fb0631d
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 56 deletions.
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "bolt/bolt-extension-starter",
"description": "A description about your extension should go here.",
"name": "",
"description": "",
"type": "bolt-extension",
"keywords": [
"foo",
"bar"
""
],
"require": {
"bolt/bolt": "^3.0"
Expand All @@ -15,8 +14,8 @@
"license": "MIT",
"authors": [
{
"name": "Your Name",
"email": "you@example.com"
"name": "",
"email": ""
}
],
"minimum-stability": "dev",
Expand Down
Empty file added config/.gitignore
Empty file.
2 changes: 0 additions & 2 deletions config/config.yml.dist

This file was deleted.

37 changes: 0 additions & 37 deletions src/ExtensionNameExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Bolt\Extension\YourName\ExtensionName;

use Bolt\Asset\File\JavaScript;
use Bolt\Asset\File\Stylesheet;
use Bolt\Extension\SimpleExtension;

/**
Expand All @@ -13,39 +11,4 @@
*/
class ExtensionNameExtension extends SimpleExtension
{
/**
* {@inheritdoc}
*/
protected function registerAssets()
{
// Add some web assets from the web/ directory
return [
new Stylesheet('extension.css'),
new JavaScript('extension.js'),
];
}

/**
* {@inheritdoc}
*/
protected function registerTwigFunctions()
{
return [
'my_twig_function' => 'myTwigFunction',
];
}

/**
* The callback function when {{ my_twig_function() }} is used in a template.
*
* @return string
*/
public function myTwigFunction()
{
$context = [
'something' => mt_rand(),
];

return $this->renderTemplate('extension.twig', $context);
}
}
Empty file added templates/.gitignore
Empty file.
6 changes: 0 additions & 6 deletions templates/extension.twig

This file was deleted.

Empty file added web/.gitignore
Empty file.
1 change: 0 additions & 1 deletion web/extension.css

This file was deleted.

4 changes: 0 additions & 4 deletions web/extension.js

This file was deleted.

0 comments on commit fb0631d

Please sign in to comment.