From 65e10d83b45e84e4bf4fe80200bf953fccaf3196 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 7 Dec 2022 17:25:44 +0300 Subject: [PATCH] Adding basice README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c8ae8fe --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +This package is used for code generation of C# meta structs using Twig templates + +Usage example: + + $twig = \metagen_cs\get_twig(); + file_put_contents('bundle.cs', + $twig->render("codegen_bundle.twig", + [ + 'namespace' => 'BitGames.Autogen', + 'meta' => get_meta() + ] + ) + );