Skip to content

egladysh/wxx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wxx

A C++ DSL for generating dynamic HTML

It has no dependencies on any JavaScript libraries.

sample/hello.cpp should give you some ideas.

sample/index.html was generated by this sample.

Build

Requirements

C++11 or later

Steps

  • Suppose you cloned to [HOME]/work/wxx

  • For out-of-source, create a build folder in [HOME]/work, and go there.

    $mkdir build

    $cd build

  • Run cmake (make sure the build Release for speed).

    $cmake ../wxx/

  • Build it.

    $make

  • You can now run a sample (the sample source is in wxx/sample/hello.cpp)

    $./hello > index.html

  • Open the generated file in the browser

    $open index.html

About

Meta-programming dynamic HTML/JS using C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published