Skip to content

Commit

Permalink
Twig 2.0.0
Browse files Browse the repository at this point in the history
### Features

* add native support for Twig.
* add new method `urlFor()`
* add new method `fullUrlFor()`
* add new method `baseUrl()`
* add new method `isCurrentUrl()`
* add new method `currentUrl()`

### BREAKING CHANGES

* use function `urlFor()` instead of `path_for()`
* use function `fullUrlFor()` instead of `full_url_for()`
* use function `baseUrl()` instead of `base_url()`
* use function `isCurrentUrl()` instead of `is_current_path()`
* use function `currentUrl()` instead of `current_path()`

affected plugins: account, accounts-admin, admin, form, form-admin, icon, themes-admin
  • Loading branch information
Awilum committed Jan 7, 2021
1 parent 391b6c1 commit f60bc4c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
<a name="2.0.0"></a>
# [2.0.0](https://github.com/flextype-plugins/twig/compare/v1.7.0...v2.0.0) (2021-01-07)

### Features

* add native support for Twig.
* add new method `urlFor()`
* add new method `fullUrlFor()`
* add new method `baseUrl()`
* add new method `isCurrentUrl()`
* add new method `currentUrl()`

### BREAKING CHANGES

* use function `urlFor()` instead of `path_for()`
* use function `fullUrlFor()` instead of `full_url_for()`
* use function `baseUrl()` instead of `base_url()`
* use function `isCurrentUrl()` instead of `is_current_path()`
* use function `currentUrl()` instead of `current_path()`

affected plugins: account, accounts-admin, admin, form, form-admin, icon, themes-admin

<a name="1.8.0"></a>
# [1.8.0](https://github.com/flextype-plugins/twig/compare/v1.6.0...v1.7.0) (2021-01-03)

Expand Down
1 change: 0 additions & 1 deletion dependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
flextype()->container()['flash'] = fn() => new Messages();
}


$twig->addExtension(new $twigExtensionClassNameWithNamespace());

}
Expand Down
6 changes: 4 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Twig
version: 1.8.0
version: 2.0.0
description: Twig plugin to present Twig template engine for Flextype.
icon: fas fa-palette
icon:
name: palette
set: "fontawesome|solid"
author:
name: Sergey Romanenko
email: support@flextype.org
Expand Down

0 comments on commit f60bc4c

Please sign in to comment.