Skip to content

privazio/handlebars.c

 
 

Repository files navigation

handlebars.c

Build Status Coverage Status License Doxygen

C implementation of handlebars.js, developed in conjunction with php-handlebars and handlebars.php.

The opcode compiler is fully featured, however the VM currently does not implement decorators, and therefore inline partials.

Installation

PPA

sudo apt-add-repository ppa:jbboehr/handlebars
sudo apt-get update
sudo apt-get install handlebars libhandlebars-dev

Source

Note: >= gcc 4.9 is required for returns_nonnull

Ubuntu

# Install dependencies
sudo apt-get install autoconf automake bison flex gcc libjson-c-dev liblmdb-dev \
                     libtalloc-dev libyaml-dev libtool m4 make pkg-config

# Install testing dependencies
sudo apt-get install check gdb lcov libpcre3-dev

# Install doc dependencies
sudo apt-get install doxygen

# Compile
git clone https://github.com/jbboehr/handlebars.c.git --recursive
cd handlebars.c
./bootstrap && ./configure && make && sudo make install && sudo ldconfig

OS X

# Install dependencies
brew install autoconf automake bison flex gcc json-c libtool libyaml lmdb pkg-config talloc

# Install testing dependencies
brew install check lcov pcre

# Install doc dependencies
brew install doxygen

# Compile
git clone https://github.com/jbboehr/handlebars.c.git --recursive
cd handlebars.c
./bootstrap && ./configure && make install

License

This project is licensed under the LGPLv2.1 or later. handlebars.js is licensed under the MIT license.

About

C implementation of handlebars.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 84.2%
  • M4 8.7%
  • Shell 2.2%
  • Yacc 1.6%
  • Lex 1.5%
  • Makefile 0.9%
  • Other 0.9%