Basicly tntnet app are compilet binär apps, but with a view on html
dom also in a webbrowser.
So the template system and language is eccp and the compiler is eccpc
the linker eccpl.
After compile you have precompilet code binär and can used in your cpp app.

Tntnet are free to used and handled, its not on rails.

The eccp tempalte are clasic html file

<html>
<head>
<!-- add css, js, meta here -->
</head>
<body>
<!-- content -->
</body>
</html>

in this con struct add eccp stuff and renaime file.html to file.eccp

<html>
<head>
<!-- add css, js, meta here -->
</head>
<body>
<!-- content -->
<%cpp>
// C++-processing-block
</%cpp>
</body>
</html>

More found here: http://www.tntnet.org/man7/ecpp.7.html
and http://www.tntnet.org/faq.html#development-4



For content and dynamic pages you make this in ecpp,
static file are good for non dynamisch pages.

See the tntnet homepage for a example:
https://github.com/maekitalo/tntnet-homepage


stargater


2014-08-30 15:43 GMT+02:00 Jouven <[email protected]>:
> It happened to me too, what I did to circumvent the problem is to repeat the
> extension twice, e.g: index.html.html, index.js.js, index.css.css so they
> would become index.html.cpp and so on so forth...
> But I would be glad if ecppc whould append the extension .cpp instead of
> replacing the current one.
> So... what I just explained or what Ralf suggests, use static files.
> On 30/08/2014 15:34, Ralf Schülke wrote:
>>
>> Hi,
>> have you read this Howto?
>> http://www.tntnet.org/howto/jquery-howto.html
>>
>> for handle static files can read this,
>> http://www.tntnet.org/howto/static-howto.html
>>
>> stargater
>>
>> 2014-08-30 14:29 GMT+02:00 Andrew Wood <[email protected]>:
>>>
>>> Hi,
>>>
>>> I don't seem to find a relevant example in the demos but when you include
>>> a
>>> js/css library in your webpage, I understand that the js & css would be
>>> compiled into the application, thus would include both in the makefile.
>>>
>>> However given the names of the js and css file are typically the same
>>> other
>>> than the extension, what is the trick then for ensuring that they create
>>> different .cpp/.o files in the compilation?
>>>
>>> Just asking because I got caught out when I was having a go at tntnet and
>>> the web page was trying to load (as javascript) the css instead of the
>>> javascript. I could manually rename the css/js files to be different but
>>> then the same thing occurs with font files etc...
>>>
>>> Cheers,
>>> Andrew
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Slashdot TV.
>>> Video for Nerds.  Stuff that matters.
>>> http://tv.slashdot.org/
>>> _______________________________________________
>>> Tntnet-general mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/tntnet-general
>>>
>>
>> ------------------------------------------------------------------------------
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> _______________________________________________
>> Tntnet-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tntnet-general
>
>

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to