Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Lib for add symbols to start or end of string in Twig templates.

License

NotificationsYou must be signed in to change notification settings

ZhukMax/TwigPad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software LicenseTotal Downloads

Lib for add symbols to start or end of string in Twig templates.

Install

composer require zhukmax/twigpad

Usage

Basic example:

<?phprequire_once'vendor/autoload.php';$loader =newTwig_Loader_Array(array('index' =>'Hello {{ rightpad(name, 9, "#") }}',));$twig =newTwig_Environment($loader);$twig->addExtension(newZhukmax\TwigPad\TwigPad());echo$twig->render('index',array('name' =>'Max'));// => Hello Max######

About

Lib for add symbols to start or end of string in Twig templates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp