For the project I'm working on, it has to have a changeable template system, so the users can make their own HTML templates to work with the system. However, I have no clue how to even go about doing this. Any help would be appreciated, thanks.
xapher19
0
Newbie Poster
Recommended Answers
Jump to PostFor the project I'm working on, it has to have a changeable template system, so the users can make their own HTML templates to work with the system. However, I have no clue how to even go about doing this. Any help would be appreciated, thanks.
I'm interested to see …
Jump to PostYou'll have to create a script that takes a template file and processes it. Come up with some simple syntax that is then replaced with content (for example, <!--# footer #--> or [[[footer]]] to create a footer placeholder).
Or, you could just make them type <?= $footer; ?>, and include …
Jump to PostWell, if you use {variable} or something like that you'll have to read and process the page, not include it, but that should be obvious.
All 10 Replies
Stefano Mtangoo
455
Senior Poster
twiss
155
Veteran Poster
xapher19
0
Newbie Poster
twiss
155
Veteran Poster
xapher19
0
Newbie Poster
Stefano Mtangoo
455
Senior Poster
xapher19
0
Newbie Poster
Stefano Mtangoo
455
Senior Poster
flinh123
0
Newbie Poster
xapher19
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.