diff --git a/README.md b/README.md index f2d73d4..e1dfde8 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ The Twig Tweak module provides a Twig extension with some useful functions and filters that can improve development experience. +Some functions and filters are built in the Twig Tweak module, while others are +simple wrappers to integrate Drupal functions and services into Twig (for +example: `format_size`, `drupal_view_result`). + ## Requirements This module requires no modules outside of Drupal core. diff --git a/docs/cheat-sheet.md b/docs/cheat-sheet.md index 3984027..af0b102 100644 --- a/docs/cheat-sheet.md +++ b/docs/cheat-sheet.md @@ -226,6 +226,7 @@ images when used in an `` tag. ``` ## Format size +Generates a string representation for the given byte count. ```twig {{ 12345|format_size }} ```