Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit efb9ac1

Browse files
committed
fixing dependency list
2 parents f276e40 + e4142ec commit efb9ac1

File tree

3 files changed

+54
-43
lines changed

3 files changed

+54
-43
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = tab
6+
trim_trailing_whitespace = false
7+
end_of_line = lf
8+
insert_final_newline = true

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
![license](https://img.shields.io/github/license/pattern-lab/patternengine-php-mustache.svg?maxAge=2592000)
2+
[![Packagist](https://img.shields.io/packagist/v/pattern-lab/patternengine-mustache.svg?maxAge=2592000)](https://packagist.org/packages/pattern-lab/patternengine-mustache) [![Gitter](https://img.shields.io/gitter/room/pattern-lab/php.svg?maxAge=2592000)](https://gitter.im/pattern-lab/php)
3+
14
# Mustache PatternEngine for Pattern Lab PHP
25

36
The Mustache PatternEngine allows you to use [Mustache](https://mustache.github.io) as the template language for Pattern Lab PHP. Once the PatternEngine is installed you can use Mustache-based StarterKits and StyleguideKits.
@@ -34,18 +37,18 @@ The Mustache PatternEngine enables these features via Helpers.
3437

3538
The requirements for using helpers with Pattern Lab:
3639

37-
* Files must go in `source/_mustache-components/helpers`
40+
* Files must go in `./source/_mustache-components/helpers`
3841
* Files must have the extension `.helper.php` (_this can be modified in the config_)
3942
* The helper **must** set the variable `$helper`
4043
* Only one helper per file (_e.g. can only set `$helper` once per file_)
4144

42-
An example function called `verbatim.helper.twig` in `source/_mustache-components/helpers`:
45+
An example function called `verbatim.helper.mustache` in `./source/_mustache-components/helpers`:
4346

4447
```php
4548
<?php
4649

4750
$helper = function ($text) {
48-
return "{{=%%pl pl%%=}}".$text."%%pl={{ }}=pl%%";
51+
return "{{=%%pl pl%%=}}".$text."%%pl={{ }}=pl%%";
4952
};
5053

5154
?>
@@ -55,11 +58,11 @@ This helper would be used like this in a pattern. Note that the tag is using the
5558

5659
```mustache
5760
{{# verbatim }}
58-
{{ this won't be parsed }}
61+
{{ this won't be parsed }}
5962
{{/ verbatim }}
6063
```
6164

62-
Mustache also allows dot notation with helpers. An example function called `case.helper.twig` in `source/_mustache-components/helpers`:
65+
Mustache also allows dot notation with helpers. An example function called `case.helper.mustache` in `./source/_mustache-components/helpers`:
6366

6467
```php
6568
<?php

composer.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
{
2-
"name": "pattern-lab/patternengine-mustache",
3-
"description": "Mustache-based PatternEngine for Pattern Lab.",
4-
"keywords": ["mustache", "pattern lab", "pattern engine"],
5-
"homepage": "http://patternlab.io",
6-
"license": "MIT",
7-
"type": "patternlab-patternengine",
8-
"authors": [
9-
{
10-
"name": "Dave Olsen",
11-
"email": "[email protected]",
12-
"homepage": "http://dmolsen.com",
13-
"role": "Lead Developer"
14-
}
15-
],
16-
"support": {
17-
"issues": "https://github.com/pattern-lab/patternengine-php-mustache/issues",
18-
"wiki": "http://patternlab.io/docs/",
19-
"source": "https://github.com/pattern-lab/patternengine-php-mustache/releases"
20-
},
21-
"autoload": {
22-
"psr-0": {
23-
"PatternLab\\PatternEngine\\Mustache": "src/"
24-
}
25-
},
26-
"require": {
27-
"pattern-lab/core": "^2.0.0",
28-
"mustache/mustache": "~2.6"
29-
},
30-
"extra": {
31-
"patternlab": {
32-
"config": {
33-
"lineageMatch": "{{>([ ]+)?([A-Za-z0-9-_]+)(?:\\:[A-Za-z0-9-]+)?(?:(| )\\(.*)?([ ]+)?}}",
34-
"lineageMatchKey": 2,
35-
"patternExtension": "mustache",
36-
"mustacheHelperExt": "helper.php"
37-
}
38-
}
39-
}
2+
"name": "pattern-lab/patternengine-mustache",
3+
"description": "Mustache-based PatternEngine for Pattern Lab.",
4+
"keywords": ["mustache", "pattern lab", "pattern engine"],
5+
"homepage": "http://patternlab.io",
6+
"license": "MIT",
7+
"type": "patternlab-patternengine",
8+
"authors": [
9+
{
10+
"name": "Dave Olsen",
11+
"email": "[email protected]",
12+
"homepage": "http://dmolsen.com",
13+
"role": "Lead Developer"
14+
}
15+
],
16+
"support": {
17+
"issues": "https://github.com/pattern-lab/patternengine-php-mustache/issues",
18+
"wiki": "http://patternlab.io/docs/",
19+
"source": "https://github.com/pattern-lab/patternengine-php-mustache/releases"
20+
},
21+
"autoload": {
22+
"psr-0": {
23+
"PatternLab\\PatternEngine\\Mustache": "src/"
24+
}
25+
},
26+
"require": {
27+
"pattern-lab/core": "^2.0.0",
28+
"mustache/mustache": "~2.6"
29+
},
30+
"extra": {
31+
"patternlab": {
32+
"config": {
33+
"lineageMatch": "{{>([ ]+)?([A-Za-z0-9-_]+)(?:\\:[A-Za-z0-9-]+)?(?:(| )\\(.*)?([ ]+)?}}",
34+
"lineageMatchKey": 2,
35+
"patternExtension": "mustache",
36+
"mustacheHelperExt": "helper.php"
37+
}
38+
}
39+
}
4040
}

0 commit comments

Comments
 (0)