Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP like languages that offers embedded HTML

Tags:

html

php

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 ..

like image 601
Neel Basu Avatar asked Dec 27 '22 07:12

Neel Basu


2 Answers

Popular server technologies supporting embedded HTML:

  • Active Server Pages (.asp)
  • Embedded Ruby Files (.erb)
  • Groovy Server Pages (.gsp)
  • JavaServer Pages (.jsp)
  • PHP: Hypertext Preprocessor (.php)

See here for a more complete list.

like image 161
calebds Avatar answered Jan 14 '23 22:01

calebds


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>
like image 29
Alex Coplan Avatar answered Jan 14 '23 22:01

Alex Coplan