Skip to content

x86-64/mustache-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

mustache-c is a basic implementation of mustache templating in pure C.

Features

Supported:

  • Sleek pure C API
  • Prerendering for better speed
  • Sections and variables

Not supported:

  • Partials
  • HTML escaping
  • Custom delimiters

Installation

Simply use the configure script to compile and install mustache-c:

$ ./configure --prefix=/usr
$ make
$ sudo make install

mustache-c requires flex, bison and reasonable modern C library that provides stdint.h. If you wish to build the doxygen documentation you will also need doxygen.

mustache-c provides a pkg-config file with which you can determine libraries and include paths:

$ pkg-config --libs mustache_c-1.0
$ pkg-config --cflags mustache_c-1.0

This also allows mustache-c to be picked up by cmake:

FIND_PACKAGE(PkgConfig)
PKG_CHECK_MODULES(MUSTACHEC REQUIRED mustache_c-1.0)

Usage

There is a test program available in the source which shows the basic usage of mustache-c.

API Documentation

See this link for the Doxygen documentation of the API.

About

Mustache templates implementation in pure c

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •