Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
madflow committed Feb 21, 2024
1 parent cf963e1 commit 2f212aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 45 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: PHP Composer

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

permissions:
contents: read
Expand All @@ -19,12 +19,7 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
operating-system: [ubuntu-latest]
steps:
Expand Down
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[![Build Status Travis](https://travis-ci.org/madflow/cheesecake.png?branch=master)](https://travis-ci.org/madflow/cheesecake)

# Cheesecake - the best!
# Cheesecake - the best!

Cheesecake is a project/directory skeleton generator thingy for PHP. It is inspired by
https://github.com/audreyr/cookiecutter.
Expand Down Expand Up @@ -40,6 +38,7 @@ composer install
# Examples

##### Create a Silex starter project

```
# Create output directory
mkdir /tmp/silex
Expand All @@ -50,23 +49,23 @@ mkdir /tmp/silex

# Hooks

Put your hooks in ```hooks``` and name them ```pre_gen.php``` or ```post_gen.php```.
Put your hooks in `hooks` and name them `pre_gen.php` or `post_gen.php`.

# Hacks

+ When processing Twig templates the Mustache engine tries to interpret expressions like ```{{ okay | upper }}``` and will fail with ```Mustache_Exception_UnknownFilterException: Unknown filter: upper```
+ In order to circumvent this, it is possible to define a magic ```filters_ignore``` parameter in your ```cheesecake.json``` file.
- When processing Twig templates the Mustache engine tries to interpret expressions like `{{ okay | upper }}` and will fail with `Mustache_Exception_UnknownFilterException: Unknown filter: upper`
- In order to circumvent this, it is possible to define a magic `filters_ignore` parameter in your `cheesecake.json` file.

```
{
"app_name": "twig",
"filters_ignore": ["upper"]
}
```
+ ```filters_ignore``` excepts an array of strings which will be translated to dummy filters.

----
- `filters_ignore` excepts an array of strings which will be translated to dummy filters.

+ You can always try to change the delimiter like documented here: https://github.com/bobthecow/mustache.php/wiki/Mustache-Tags#set-delimiter
+ This way it should be possible to circumvent problems with other template engines.
---

- You can always try to change the delimiter like documented here: https://github.com/bobthecow/mustache.php/wiki/Mustache-Tags#set-delimiter
- This way it should be possible to circumvent problems with other template engines.

0 comments on commit 2f212aa

Please sign in to comment.