Naviga Web
Docs Home
  • Introduction
  • Release notes
  • Starter kit
    • Introduction
    • Environment Variables
    • Makefile
    • Changelog
    • API
  • Feature: Advanced Search
    • User guide
    • Search Help
    • How to Setup
    • Technical Details
  • Developer documentation
    • Developer prerequisites
      • Developer hardware suggestions
      • Setup on Windows
      • Setup on Linux/Ubuntu
    • Getting started with development
      • Composer package management
      • Gulp and asset building (optional)
      • Git
      • Hosts file
      • Certificate
      • Initiate Naviga Web
      • Start Naviga Web
      • Bin scripts
      • Create theme
      • Environments
      • Deployment
      • Onboarding tasks
        • #0 - New site
        • #1 - Configuration
        • #2 - Front page
        • #3 - Content presentation
        • #4 - OC List
        • #5 - Content containers
        • #6 - Teaser template
        • #7 - Single article
        • #8 - Widget
        • #9 - Custom task
        • #10 - Feedback
    • Architecture
    • Paywall and authentication
      • CloudFront Paywall
      • Engage paywall
      • Lua Paywall (deprecated)
    • Project management: A typical project
    • Database dump
    • Debugging
    • Keep your project up-to-date
    • Gulp and Sass
    • Domain mapping
    • Widgets overview
  • Starter kit packages
    • Base package
      • Changelog
    • Boards plugin (EveryBoard)
      • Installation
      • Setup
      • Board Widgets
        • Linked board
        • Template board
        • Embed widget
        • OC List item
        • Content container
      • Teaser templates
      • Actions and filters
      • Export - import
      • Changelog
    • ContentSync plugin
      • Usage
      • Changelog
    • Drop In Plugins package
      • Changelog
    • Everyware plugin
      • Installation
      • Setup
      • Actions and filters
      • Fetching lists and their content
      • Sorting
      • Widgets
      • Changelog
    • Imengine package
      • Helper class: Imengine
      • Changelog
    • NewsML package
      • Idf Parser
      • Changelog
      • Usage
    • NGINX conf package
      • API
      • Changelog
      • Usage
    • Presentation Preview plugin
      • API
      • Changelog
      • Usage
    • Support package
      • Changelog
    • Theme EU resources package*
      • Changelog
    • Theme US resources package
      • Changelog
    • Twig package
      • Development
        • Filters
          • class_string
          • spacey
          • trim_array
        • Functions
          • php_function
          • php_method
          • render_classes
          • render_partial
        • Operators
          • contains
      • Helper classes
        • View
        • ViewSetup
      • Changelog
  • Widgets and component packages
    • Article List widget
      • Installation
      • Using Article List
      • Changelog
    • Menu handler
      • Usage
      • Changelog
    • Section Header widget
      • Changelog
    • Social media icons widget
      • Installation
      • Changelog
    • Google Analytics plugin
      • Set up Google Analytics
      • Most read widget
      • Changelog
    • Redirect Original URLs plugin
      • Installation
      • Changelog
    • Settings Parameters plugin
      • Installation
      • Usage
      • Changelog
  • Design and theme packages
    • Base theme 1
      • Changelog
    • Base theme 2
      • Colors
      • Fonts
      • Header
      • Menus
      • Pages with Board
      • Sidebars
      • Teaser layouts
      • Article page (text)
      • Article page (embeds)
      • Changelog
    • Example theme
      • Changelog
  • MU Plugins
    • Project Plugin
      • Installation
      • Changelog
    • Starter Package Catalyst
    • Concepts
      • Admin Pages
        • All Concepts
        • Add New Concept
        • Types
        • Errors
        • Concept duplicates
      • API
      • Console
      • Changelog
    • Network
      • Changelog
    • Cache Invalidator
      • Getting Started & WP admin
      • Implementation of Lua endpoint
      • Filters
      • Changelog
    • RSS Feeds
      • Setup
      • Administration pages
      • Changelog
  • Services
    • Imengine
    • Imengine documentation
    • Open Content
    • Writer Bookmarklet
Powered by GitBook
On this page
  • [Unreleased]
  • 1.2.0 - 2022-04-08
  • Fixed
  • Deprecated
  • 1.1.1 - 2022-02-10
  • Added
  • 1.1.0 - 2021-02-08
  • Added
  • Fixed
  • 1.0.0 - 2020-06-04
  • Added
  • Updated
  • Changed
  • Fixed
  • Deprecations
  • 0.7.1 - 2020-03-12
  • Fixed
  • 0.7.0 - 2020-03-03
  • Added
  • Changed
  • Deprecated
  • 0.6.0 - 2019-08-22
  • Fixed
  • Changed
  • Removed
  • Added
  • 0.5.2 - 2019-05-08
  • Changed
  • 0.5.1 - 2019-04-02
  • Changed
  • 0.5.0 - 2019-02-13
  • Changed
  • Removed
  • Added
  • 0.4.0 - 2019-02-7
  • Removed
  • Changed
  • Fixed
  • 0.3.3 - 2019-01-30
  • Fixed
  • 0.3.2 - 2019-01-25
  • Removed
  • 0.3.1 - 2019-01-10
  • Fixed
  • 0.3.0 - 2019-01-10
  • Changed
  • Removed
  • Fixed
  • 0.2.0 - 2018-12-19
  • Changed
  • 0.1.0 - 2018-12-18
  • Added

Was this helpful?

  1. Starter kit packages
  2. Twig package

Changelog

This is the changelog for infomaker/everyware-twig

Current version: 1.2.0

[Unreleased]

1.2.0 - 2022-04-08

Fixed

  • Removed call to DeprecationHandler:listen(), see below deprecation notice for more info.

Deprecated

  • DeprecationHandler:listen(). This method registers an error handler that hijacks all error types, causing unwanted behaviour.

1.1.1 - 2022-02-10

Added

  • The support for PHP v8 has been added to composer.json.

1.1.0 - 2021-02-08

Added

  • New Twig filter:

    • spacey (protects whitespace between tags, so the spaceless filter can't remove them)

Fixed

  • Make sure that multiple registrations of Wp-functions do not break Twig. We will ignore any registration of a global function that has already been registered.

1.0.0 - 2020-06-04

Added

  • We've introduce a deprecation handler that will trigger php errors to let you know if your templates contains deprecated features.

Updated

Changed

  • Removed Pre storing of registered paths, functions, filters and globals against ViewSetup. This removes the requirement to initiate Twig before usage.

Fixed

  • Fixed the way duplicate registrations of functions and filters overrides the previous one.

  • Fixed the way template paths where registered. This may cause older implementations to trigger errors when templates try to include an unknown file.

Deprecations

  • Registered functionality like functions and filters will have to be prefixed from now on.

  • ViewSetup can't be initiated anymore.

0.7.1 - 2020-03-12

Fixed

  • Enable Template debugging in dev environments

0.7.0 - 2020-03-03

Added

  • Added support for extending Twig environment

  • Added support for extending Twig environment with Twig Extensions

  • Twig deprecation handling to warn about deprecated features in Twig.

  • New Twig filters:

    • class_string (can convert arrays to string suited for html class-attribute )

    • trim_array (filters an array to remove "unwanted" values like false, null empty array/string, strings that would be considered empty, arrays that contains "unwanted" values)

  • New Twig Operator:

    • contains (can confirm the existence of words or sentence in a string)

Changed

  • Updated Twig version to 2.12.5

Deprecated

  • Dropped support to set custom Template Loader

  • Deprecated support to excluding directories when registering templates

  • Deprecated use of EveryTwig class.

0.6.0 - 2019-08-22

Fixed

  • Start using the TwigEnvironment instead of the old Override-class

  • Switch deprecated classes.

  • Release script validations and documentation automation fix

  • Hash cache key for the template paths cache

  • Add expire time to the template paths cache

Changed

  • Update way of extending Twig environment with globals, filters and functions

  • Moved default php functions to the class meant for this

  • Update names of Twig Classes

  • Update build script

Removed

  • Removed old broken overriding class of TwigEnvironment to instead use the one provided from Twig.

Added

  • Added documentation to maintain on Gitbook

0.5.2 - 2019-05-08

Changed

  • Composer constraints

  • Update build flow

0.5.1 - 2019-04-02

Changed

  • Updated twig version to ^2.*

0.5.0 - 2019-02-13

Changed

  • Twig_Environment now only has private properties, we now access those thru methods instead. E.x getCache instead of this->cache.

  • Environment now return Twig_TemplateInterface

  • Changed functions and filters to return Twig_Function/Filter instead of Twig_SimpleFunction/Filter.

Removed

  • Removed Property cacheTime and setCacheTime from FilesystemLoader

  • Removed setLoaderCache from ViewSetup

Added

  • Added unit and feature tests

0.4.0 - 2019-02-7

Removed

  • Removed possibility to instantiate Fileloader and EveryTwig more than once.

Changed

  • ViewSetup is now a singleton

  • ViewSetup should no longer be extended

  • Code refactoring of View, ViewSetup, FilesystemLoader and EveryTwig classes.

  • Added Unit and feature tests

Fixed

  • Added support for twig debug extension

0.3.3 - 2019-01-30

Fixed

  • use path to generate key when caching paths to loader for better handling when using same namespace with multiple paths

0.3.2 - 2019-01-25

Removed

  • Removed unnecessary files from getting added to composer package.

  • Such as phpunit & README

0.3.1 - 2019-01-10

Fixed

  • Fix broken PathFilter

0.3.0 - 2019-01-10

Changed

  • Update usability for adding functions, filters, paths and globals to twig before initiation.

Removed

  • Removed Unused classes for filesystem loading and filtering of paths

Fixed

  • minor fixes and optimizations

  • add cachetime for loaded paths according to environment

0.2.0 - 2018-12-19

Changed

  • Updated to correct license

  • 'Fixed package deployment. To not include unnecessary files.

0.1.0 - 2018-12-18

Added

  • 'Added this file and boilerplate and markup example for the future

PreviousViewSetupNextArticle List widget

Last updated 3 years ago

Was this helpful?

Updated to

Read more about Deprecated Features in Twig and

Twig 3.x
v2.x
v3.x