Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fill readme

  • Loading branch information...
commit 84fc75504890d480d8fb95df4febede20530faf2 1 parent 1cee04d
Igor authored

Showing 1 changed file with 22 additions and 0 deletions. Show diff stats Hide diff stats

  1. +22 0 README
22 README
... ... @@ -0,0 +1,22 @@
  1 +JsonTpl is an Erlang library for building JSON Encoder/Decoder for Erlang by template.
  2 +
  3 +Using:
  4 +1) add "prib/bintpl" dir to you project
  5 +2) add "*.tpl" files to this dir.
  6 +3) run "jsontpl:build(Project, FileName)." from Erlang console
  7 +
  8 +Template example (for example.tpl):
  9 +
  10 +{profile, [
  11 + {key, atom, none},
  12 + {place, {tpl, example, point}, undefined},
  13 + {name, string, <<>>},
  14 + {list, [string], []},
  15 + {dict, [{string, string}], []}
  16 +]}.
  17 +
  18 +{point, [
  19 + {x, <<"X">>, float, 0.0},
  20 + {y, <<"Y">>, integer, 2},
  21 + {z, <<"Z">>, bool, false}
  22 +]}.

0 comments on commit 84fc755

Please sign in to comment.
Something went wrong with that request. Please try again.