Reputation: 12904
What are the other languages that has the ability to handle embedded HTML/Non-processed-text like PHP's <?php /*PHP CODE*/ ?> NON-PHP CODE
natively ?
What I actually want is to keep the logic part hard coded may be in C++ then I'll expose the constructs like few variables for the presentation layer to work with it. and leave the presentation part loose on some scripting language where I can embed a mark up language. as the presentation layer is supposed to be rapidly changing there won't be a compilation overhead ..
Upvotes: 6
Views: 2554
Reputation: 197692
X(HT)ML has this natively with processing instructions (XML 1.0; 8 Dec 1997):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><!-- a processing instruction -->
<html>
<head><?pi /* instructions here */ ?></head><!-- another one -->
<body><?pi /* instructions there */ ?></body>
<?php /* even this is a valid processing instruction */ ?>
</html>
Apart from that which is merely informative and depends on the processor as well, you find similar stuff with many web related languages like:
And many, many more.
Upvotes: 0
Reputation: 13361
Ruby on Rails does (with .erb
- embedded ruby files) - you can use embedded ruby in the views for rails MVC applications...
For example:
<p>
<b>Some HTML</b>
<%= puts "some ruby" %>
</p>
Upvotes: 2
Reputation: 26228
Popular server technologies supporting embedded HTML:
See here for a more complete list.
Upvotes: 8
Reputation: 13166
JSP (Java Server Page), classic ASP and Ruby on rails are some PHP like server side programming languages for working in the web applications
Upvotes: 0
Reputation: 270607
Classic ASP does as well, though I would not recommend using it for a modern project.
Upvotes: 1