diff --git a/README.md b/README.md index c8ae8fe..cc33db5 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,9 @@ 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() - ] - ) - ); + $code = \metagen_cs\codegen(null, get_meta(), + [ + 'namespace' => 'BitGames.Autogen' + ]); + file_put_contents('bundle.cs', $code); +