Problem/Motivation
In some cases is useful to process base64 strings, for example when implementing a front controller for some CI or PaaS services which handles config value as base64 encoded strings. Also can be used to encode metadata into HTML attributes wich in other way may break your markup.
Steps to reproduce
N/A
Proposed resolution
Implement 2 new filters base64_encode and base64_decode which will act on string values.
Remaining tasks
Implement both filters on the "conversion" filters classAdd some tests
User interface changes
N/A
API changes
Update the docs with new filters.
Data model changes
N/A
Issue fork twig_tools-3246405
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
d70rr3s commentedComment #5
pcate commentedLooks good. Thanks for including test coverage. I'll need to add documentation before creating a new release.
Comment #7
pcate commentedComment #8
pcate commentedAdded with new 8.x-1.4 release.