Skip to content

nerva-server/nerva-press

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example Usage

Let's say we have a index.html file like:

<h1>Hello!</h1>

What's up homie?

<%for(int i=0; i < 5; i++) { %>
<h2> Header <%-i%> </h2>
<% } %>

You can compile with that command:

nerva-press index.html -o output.hpp

Example Inclusion

void someFunction() {
...
Server sv;

#include "path/to/generated/header/file"
sv.Use(NEVRA_PRESS_MAIN_ROUTER);
...
}

Specify NEVRA_PRESS_MAIN_ROUTER

...
#define NEVRA_PRESS_MAIN_ROUTER myrouter
#include "path/to/generated/header/file"

sv.Use(myrouter);
...

About

A template engine for nerva-server which can be written with C++ syntax

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors