{"repo":"ikkez/f3-template-directives","free":true,"listed":false,"github":"https://github.com/ikkez/f3-template-directives","clone":"git clone https://github.com/ikkez/f3-template-directives.git","description":"A collection of template directives for the PHP Fat-Free Framework","language":"PHP","stars":11,"topics":["fat-free-framework","template","forms","utility","viewhelpers"],"license":"GPL-3.0","category":"saas-starters-boilerplates","readme_excerpt":"Template directives Collection of different template directives for the PHP Fat-Free Framework. This package gives you a base to write your own template tag handler (directive) easily. Therefore extend the \\Template\\TagHandler class and implement its build method. You can also have a look at the included, ready-to-use directives: form A collection of additional form-related HTML tag handlers for server side data handling to form / input / select / textarea elements. Init: This automatically registers the following directives: input , select , option , textarea , form . Any data you set to the global POST variable is filled into the registered form elements accordingly. If you want to use a different hive key, you can do it like this: You can also fill the form fields dynamically based on the form name attribute: The field target is then set to FORM.contact : For more tests, see: http://f3.ikkez.de/formtest markdown Convert inline markdown text or render a file. or Init: image Render image thumbnails automatically. Init: Options: temp dir , public accessable path for generated, temporary thumbnail images file type , default file type for dumped images, png , jpeg , gif or wbmp default quality , image quality, 0-100 not found fallback , fallback path for missing images not found callback , define a callable function here that is executed when the image path was not found. The function receives the $filePath as first parameter. Usage: Additional attributes: width , target image ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ikkez","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ikkez/f3-template-directives/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}