I am looking for a language that I can separate the HTML and the code in it easily. I mean somethimes it is difficult to separate HTML but I am sure there is a language or Framework which can easily help in making very clean code. Which language is best known for this issue?
|
closed as off topic by Walter, Yannis Rizos♦ Apr 17 '12 at 13:47
Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
Wicket does a nice job of this. HTML and formating code is stored in .html files while the logic and data comes form Wicket page classes. It is a little strange at first, but does provide a nice separation. |
|||
|
|
|
Microsoft ASP.NET, C# MVC combination (There are other languages available, but this is becoming the most prefered.) can do this pretty easily. |
|||||
|
|
I haven't used it but I have heard good things about Python in combination with Django. |
|||
|
|
|
I guess mostly all the programming languages have some or the other framework for this. Java - Wicket PHP - CodeIgniter Python - Django |
|||
|
|
|
The language that I know to have some template framework that helps with the HTML/server code separation are Java, Perl and Python. Java has the biggest collection of frameworks to choose, from very good to awfully bad, Perl and Python has a smaller amount of stable frameworks but they work like a charm. |
|||
|
|
|
Pretty much any modern webby language can make cleanly separated code. Or a big ball of mud. It is as much on the developer to maintain the separation as it is on the framework to provide guidance. |
|||
|
|
|
For the most part, you shouldn't be concerned with language so much as framework, particularly an MVC web framework. There's such a framework for just about any language you can think of, and certainly nearly all of the popular languages. Ones I've worked with are Ruby on Rails (probably the canonical web MVC framework) and Django, which both do the job of separating logic from presentation equally well. |
|||
|
|
PHP with a decent MVC Framework (like Symfony) are great for keeping your code in a clean MVC pattern. |
|||
|
|
|
Google web Toolkit (GWT) has very good MVC framework and many other features to help you achieve what you want. |
|||
|
|
|
For things that I want to get online quickly and not futz around with a big framework, my automatic go-to is Python + the Cheetah template engine. Very simple - do all your logic in Python, write your html template, the Python script sends variables etc to the template, Cheetah makes shiny html files. |
|||
|
|
