diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tags diff --git a/README.md b/README.md new file mode 100644 index 0000000..800fe9b --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +This package is used for code generation of Go meta structs using Twig templates + +Usage example: + + $twig = \metagen_go\get_twig(); + file_put_contents('bundle.go', + $twig->render("codegen_bundle.twig", + [ + 'package' => 'autogen', + 'meta' => get_meta() + ] + ) + );