🚀 CommentTemplate - A Powerful Template Engine for Flight PHP #665
KnifeLemon
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
Hey that's pretty cool. I personally won't use it cause I was scarred by a framework years ago that served a js file in a similar way, but my experience doesn't have to be everyones experience :) So why don't you add this to the flightphp/docs repo? Go ahead and edit the awesome_plugins file to put this on there and then following a similar "feel" for the other plugin pages, then add your page with how to install, what it's for, use cases with flight, how to connect it to a flight instance etc, so users know how to dive in quickly with your plugin. Thank you a TON for help contribute to Flight's mission. I appreciate it very much :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! 👋
I'd like to share CommentTemplate, a feature-rich PHP template engine I've developed that integrates seamlessly with Flight PHP and offers some unique capabilities that go far beyond basic templating.
🎯 Why CommentTemplate?
While working on Flight projects, I found myself needing a template engine that could handle complex asset management, provide flexible loading strategies, and maintain clean, maintainable code. CommentTemplate was born from this need, offering a comprehensive solution that rivals much larger frameworks.
✨ Comprehensive Feature Set
🔧 Seamless Flight Integration
📦 Advanced Asset Compilation
⚡ Flexible JavaScript Loading Strategies
🎨 CSS Management Options
🏗️ Template System
{* This comment is completely removed from output *} {* Multi-line debug comments for development notes *}🖼️ Asset Processing Magic
🔥 Unique: Asset Directives in CSS/JS Files
This is where CommentTemplate really shines! You can use asset directives inside your CSS and JavaScript files:
In your CSS:
In your JavaScript:
🎛️ Variable System with Filters
{$title|escape} <!-- HTML escaping --> {$content|nl2br|trim} <!-- Chained filters --> {$name|default='Guest'} <!-- Default values --> {$title|upper|concat=' - Admin'} <!-- Transform and concatenate -->🚀 Quick Example with Flight
Template (homepage.php):
🎨 What Makes It Special?
1. Intelligent Asset Management
2. Developer Experience
3. Performance Focused
4. Production Ready
📊 Package Stats
🔗 Links
composer require knifelemon/comment-template💭 Community Feedback Welcome!
I'd love to hear from the Flight community:
The package is actively maintained with regular updates. I'm particularly proud of the asset directive system that works inside CSS/JS files - it's something I haven't seen in other template engines!
Let's build better Flight apps together! 🎉
Built with ❤️ for the Flight PHP community
Beta Was this translation helpful? Give feedback.
All reactions