Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:04:09+00:00 2026-06-10T22:04:09+00:00

I know things like these have been asked and answered several times before, is

  • 0

I know things like these have been asked and answered several times before, is it just that I can’t grasp the idea easily or too hard to accept that things are really like this and that.

I know that HTML is used for Front-End where the tedious work is done in the Client, and PHP is working behind the scenes (Server-Side). With so many regulations, instruction, standards, so on and so forth.. I believed I have already confused myself with these stuffs, making things (new and old) hard for me to chew and understand especially when it comes to their best uses…

Anyway, I have created a web application based on the concept of MVC tho I didn’t used the strong fundamentals of the topic nor a framework, I separated the Logic, Rules and Design concerns by my own.

Unfortunately, I wound up with some issues similar to which is the right way to do the things, how this should be implemented, etc…

I end up needing to template the HTML, however, since I’ve used HTML as HTML itself, I end up updating/editing each and every affected file (for. eg. a web page header), unlike when I used PHP before, literally a file with a .php extension, where I can fully utilize templating, however, i read somewhere that it is not a good practice because it breaks the HTML.. so which one should I follow and how can I solve my problem, should I move to .php and then create a template page, or is there a way I could do such with HTML? if there is any, how can it be done?

Please for the meantime, don’t point me to frameworks available, I want to understand basic things first before studying frameworks…

Anyone, please…

Edit…
so this is just fine and that it doesn’t have any drawbacks…
main.php

 <?php php stuffs ?>
 <html>
 <body>
  HTML stuffs and some <?php php stuffs ?>
 </body>
 </html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:04:10+00:00Added an answer on June 10, 2026 at 10:04 pm

    HTML has no templating capability.

    It has frames and iframes, but they come with significant drawbacks and only provide include functionality.

    You should use a proper templating language. This can run on the client, server or build system.

    I’d recommend against running it on the client. It adds an unnecessary dependency that your visitors (including search engine indexers) have to fulfil.

    PHP will do the job (it straddles the border of being a programming language and a templating language). My personal preference is for Template-Toolkit.

    TT can run in your build system via the ttree utility, or you can run it on your server. There is a tutorial covering how to build websites using it.

    If, and when, you move to building websites with more demanding server side requirements, then you can continue to use TT as it is supported but most of the web frameworks in Perl land (e.g. the dancer module for TT and the catalyst module for TT. Note that those links go to the hardcode documentation for the modules, and if you plan to use one of the frameworks you should start with a higher level tutorial)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know questions like this have been asked before, and I've viewed a lot
I know similar questions have been asked before, but still things are not clear
I know that this has been asked a million times before, but nothing that
Maybe my question has been asked several times, but... I have the following code
I know that the question has been asked before , but it's been two
I know this has been asked before. But I have exhausted the options given
I like to know how things work and as such have been delving deep
I know similar questions have been asked before (I've read most of them), but
I know that a lot of c/c++ XML library questions have been asked already
Variations of this question have been asked before, but it seems like the issue

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.