C++17 library for generating HTML, CSS and SGML-like documents. https://speedie.site/docpp
Go to file
Jacob 8a3d21ea31 Add Gentoo ebuild, along with code necessary to generate one. Also,
clean up the CMakeLists.txt file, allowing it to be more cross platform.
2024-05-14 15:39:50 +02:00
.github/workflows Add CI badge. 2024-05-06 00:31:29 +02:00
cmake Add Gentoo ebuild, along with code necessary to generate one. Also, 2024-05-14 15:39:50 +02:00
docs Add Doxygen file, remove old aliases. 2024-05-12 21:56:03 +02:00
examples Change case for many methods to closer align with the standard library. 2024-05-13 12:00:47 +02:00
include Change case for many methods to closer align with the standard library. 2024-05-13 12:00:47 +02:00
scripts Add Gentoo ebuild, along with code necessary to generate one. Also, 2024-05-14 15:39:50 +02:00
src Change case for many methods to closer align with the standard library. 2024-05-13 12:00:47 +02:00
tests Make use of the template functions in the test cases. 2024-05-14 10:04:32 +02:00
.gitignore Add Doxygen file, remove old aliases. 2024-05-12 21:56:03 +02:00
CMakeLists.txt Add Gentoo ebuild, along with code necessary to generate one. Also, 2024-05-14 15:39:50 +02:00
LICENSE Initial commit 2024-05-05 23:31:42 +02:00
README.md Add Gentoo ebuild, along with code necessary to generate one. Also, 2024-05-14 15:39:50 +02:00

docpp

action

Small C++ library for generating XML, HTML and CSS.

Features

  • HTML, CSS and XML document generation and deserialization
  • Sensible indentation for pretty-formatting.
  • Modern C++ API
  • No dependencies, other than the standard library
  • Windows, macOS, Linux and *BSD support
  • LGPL license

Not yet implemented

  • HTML/XML/CSS serialization (parsing from e.g. file)

Installation

To install the library, you can utilize the provided CMakeLists.txt file:

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
cmake --build .
cmake --install . --prefix /usr

This will install the library to /usr/lib and the headers to /usr/include/docpp. If you use Arch Linux, you can specify -DGENERATE_PKGBUILD=ON to generate a PKGBUILD file in the build directory. You can then use makepkg to build a package.

cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DGENERATE_PKGBUILD=ON
cmake --build .
makepkg -si

If you use Gentoo Linux, you can specify -DGENERATE_EBUILD=ON to generate an ebuild file in the build directory, along with the manifest.

Usage

Just include docpp.hpp in your project and link against the library. Examples can be found in the examples directory.

License

This project is licensed under the GNU Lesser General Public License v3.0 - see the LICENSE file for details.

Code of Conduct

None. Just don't blow up my house. And, don't ask me to rewrite it in Rust.