Skip to content

martinec/handlebars.c

 
 

Repository files navigation

handlebars.c

Build Status

C implementation of the handlebars.js lexer, parser, and compiler. Use with php-handlebars and handlebars.php.

Installation

PPA

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

Source

Ubuntu

# Install dependencies
sudo apt-get install autoconf automake bison flex gawk gcc git-core \
                     libjson0-dev libtalloc-dev libtool m4 make pkg-config

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

# Install doc dependencies
sudo apt-get install doxygen

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

OS X

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

# Install testing dependencies
brew install check lcov

# Install doc dependencies
brew install doxygen

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

License

This project is licensed under the LGPLv3. handlebars.js is licensed under the MIT license.

About

C port of the handlebars.js lexer, parser, and compiler.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 89.5%
  • Shell 5.7%
  • Bison 4.8%