Features
When it comes to templating, PHPFront was crafted on the job! All the real-life challenges - we made sure it had an answer.
We spared no effort in driving the hard part out of templating. And now,
- All the repeative tasks are gone!
- All the codes here and there have been reduced to nothing!
So instead of thinking about how to solve the problems, think of new things HTML and PHP can do together; because the problems are no more there.
Now, here are the features! See if everything is not covered!
And, we'll be showing you more as we discover them!
Functionality
Template Manipulation
Remove an element, or change its type (from div to textarea, for example), or move it to another location. Add content, add attributes - do everything all on the fly.Runtime Includes
Ability to include other local HTML files as subsets of the main template.That's how you add things like header and footer files or other inline template files at runtime.
Element Repeats. Smart Rendering
Ability to auto-generate new elements or simply repeat existing ones on the fly - where more elements are needed.That's you create patterns and grids - even from one or two elements.
Remote Imports
Ability to URL-import elements of other HTML files located elsewhere into the main template.That's how you include snippets from another page on the same website or all the way from another website!
Reparse Rendering
Ability to re-render inserted strings that contain HTML markup.Insert content into another inserted content.
That's how you manipulate elements within markup strings obtained from a database, as if part of the main template.
Extended Rendering
Ability to extend functionality by setting value handlers.Create extensions, send elements out of the runtime and modify them your own way before returning.
Implementation
Clean Code Separation
Facilitates clean separation of application code (PHP) from presentation code (HTML).PHPFront makes them work from a distance.
(Just like the code-separation between CSS and HTML)
Syntaxless, PHPless, 100%-HTML
No template{syntaxes}
like other template engines do. No
<?php ?>
codes on templates. Just HTML! (That's an end to hybrid markup)
Standard Conventions
Implements CSS Selectors and XPATH query.Offers you the best of both worlds: CSS3's simplicity and familiarity, the power of XPATH!
(Now that amounts to no learning curve!)
Application Security
Fails all PHP codes within HTML – because they never run! They only amount to text content.(So even the most badly-coded template is never a threat!)
Plug-N-Play Templating
Uses any valid HTML file as template.(Sees every plain HTML template as a plug and play user interface for any PHP-based application.)
Ultra Simplicity. Easy API
Intentionally made simple! Only few API calls to do big things.(Makes no sense to do things the hard way.)
Seamless Deployment
Takes nothing to setup - just one or two lines of code!Seamless to deploy on projects - new or existing.
(Leaves your code valid even when you undeploy for no reason.)