Обновить README.md

This commit is contained in:
Pavel Shevaev 2024-03-27 12:20:29 +03:00
parent 467c52e6e3
commit 5b4adb4a29
1 changed files with 6 additions and 9 deletions

View File

@ -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);