PHP/Neko code inside HTML

38 views
Skip to first unread message

Pier Bover

unread,
Aug 30, 2013, 11:12:17 PM8/30/13
to haxe...@googlegroups.com
Is it possible to write "inline" PHP/Neko inside HTML code?

For example this is pretty common when writing PHP:

<?php if (something): ?>
 
<span>bla bla bla</span>
<?php endif ?>

Michel Romecki

unread,
Aug 31, 2013, 2:50:11 AM8/31/13
to haxe...@googlegroups.com
Hi,
It's not possible since neko is a compiled binary file.
I can suggest you looking to templo lib that allows you mix html and "code"
Best,
Michal


2013/8/31 Pier Bover <pierb...@gmail.com>

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.

tom rhodes

unread,
Aug 31, 2013, 3:36:07 AM8/31/13
to haxe...@googlegroups.com
Or use html templates and serve your pages in neko/php.

Erazor macro templates let you use pretty much the whole haxe language in the template so they become more like view classes. 
Reply all
Reply to author
Forward
0 new messages