Jsonnet - The data templating language
C++ Python C Shell HTML Java Other
Clone or download
Permalink
Failed to load latest commit information.
benchmarks Remove obsolete BUILD files Jul 19, 2018
case_studies Fix typo in TEMPLATE (#505) Apr 25, 2018
cmd Updated documentation with new defaults Mar 16, 2018
core std.native not found should return null Jun 24, 2018
cpp Less dynamic casts (2nd phase, gc heap) (#533) Jun 24, 2018
doc Remove duplicated substr from docs Jul 19, 2018
editors Remove Vim syntax file since it has been moved to google/vim-jsonnet.… Oct 1, 2015
examples Remove obsolete BUILD files Jul 19, 2018
gc_stress Fix fmt tests Feb 24, 2018
include Bump version with fixed test golden files Jul 19, 2018
java_comparison New website Apr 14, 2018
perf_tests Add another realistic benchmark May 8, 2018
python Python 3 compatibility Aug 7, 2017
stdlib Fix #531 by adding tailstrict Jun 22, 2018
test_cmd Bump version with fixed test golden files Jul 19, 2018
test_suite std.native not found should return null Jun 24, 2018
third_party/md5 Adding #include <string> for windows build Jan 11, 2018
tools Add missing Bazel script info to allow build via Bazel. May 30, 2018
vs2017 adding a VS2017 solution and adapting JsonnetJsonValue to be compatib… Aug 22, 2017
.clang-format Reformat code (and add make target to do so) Aug 2, 2017
.gitattributes Add reformatter, fix #73 Mar 1, 2016
.gitignore Add js-yaml Apr 16, 2018
.travis.yml Remove "rvm get head" workaround to see what happens Dec 13, 2017
CMakeLists.txt CMake build and test. (#303) Oct 11, 2017
CMakeLists.txt.in CMake build and test. (#303) Oct 11, 2017
CONTRIBUTING Update push_docs.sh to git clone with SSH. Update docs with new websi… Dec 16, 2015
Dockerfile Changed to use multi-stage docker build Jul 18, 2018
LICENSE Initial commit Aug 6, 2014
MANIFEST.in Fix Python package Feb 1, 2017
Makefile New website Apr 14, 2018
README.md New website Apr 14, 2018
WORKSPACE CMake build and test. (#303) Oct 11, 2017
gmock.BUILD Fix Bazel tests Nov 17, 2016
setup.py Fix Python package Feb 1, 2017
tests.sh Some UX improvements to commandline tool + cmdline tests Nov 4, 2017

README.md

Jsonnet - The data templating language

Build Status

For an introduction to Jsonnet and documentation, visit our website.

Visit our discussion forum.

Building Jsonnet

You can use either GCC or Clang to build Jsonnet. Note that on recent versions of macOS, /usr/bin/gcc and /usr/bin/g++ are actually Clang, so there is no difference.

Makefile

To build Jsonnet with GCC, run:

make

To build Jsonnet with Clang, run:

make CC=clang CXX=clang++

To run the output binary, run:

./jsonnet

Bazel

Bazel builds are also supported. Install Bazel if it is not installed already. Then, run the following command to build with GCC:

bazel build -c opt //cmd:jsonnet

To build with Clang, use one of these two options:

env CC=clang CXX=clang++ bazel build -c opt //cmd:jsonnet

# OR

bazel build -c opt --action_env=CC=clang --action_env=CXX=clang++ //cmd:jsonnet

This builds the jsonnet target defined in cmd/BUILD. To launch the output binary, run:

bazel-bin/cmd/jsonnet

Cmake

TODO: info about cmake

Contributing

See the contributing page on our website.

Developing Jsonnet

Running tests

TODO

Locally serving the website

TODO