Comments (2)
Hello,
Yes its possible. We need to use eg. Twig for faster developments. As an example, currently in htmly.php
there is:
render('add-page', array(
'title' => i18n('Add_new_page') . ' - ' . blog_title(),
'description' => strip_tags(blog_description()),
'canonical' => site_url(),
'type' => 'is_page',
'is_admin' => true,
'bodyclass' => 'add-page',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . i18n('Add_new_page')
));
If using Twig seems just replace it using like:
$twig->render('add-page.twig', array(...));
Template file changed from add-page.html.php
to add-page.twig
.
from htmly.
But using Twig would add another 368 files (Twig-2.16.0) or 180 files (Twig-3.8.0) to the HTMLy footprint!
Maybe something similar can be achieved in only 66 files (plates-3.5.0)? (I never used it.) https://github.com/thephpleague/plates
from htmly.
Related Issues (20)
- RSS import failed HOT 3
- How to customize <title></title> HOT 12
- php-Warning in admin/updates HOT 2
- Can't edit or delete posts HOT 8
- Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string HOT 3
- Known issue: Does not support underscore character in username HOT 1
- Version 2.9.0 - i18n error HOT 11
- Looking to override some css HOT 7
- Feature request: TOC support HOT 5
- Feature request: Adding Mastodon to Social Media links, adding user verification HOT 2
- Installing Issue on armbian, lighty, HOT 5
- Question: HTMLy says server is offline for updates HOT 4
- Teaser break handling (<!--more-->) HOT 4
- Function of "Meta description character" in config HOT 2
- show More than post HOT 2
- I have added a translation into Croatian HOT 4
- New install of HTMLY as of 3/15/2024 HOT 3
- Is it possible to center an image / text ? HOT 2
- How to remove the search box ? HOT 2
- I can't install /ly/ not found HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmly.