Обновить README.md

This commit is contained in:
Pavel Shevaev 2024-12-18 18:38:43 +03:00
parent 02a5871f89
commit 32bfa591d7
1 changed files with 3 additions and 2 deletions

View File

@ -2,9 +2,10 @@ This package is used for code generation of C# meta structs using Twig templates
Usage example:
$code = \metagen_cs\codegen(null, get_meta(),
$output = \metagen_cs\codegen(null, get_meta(),
[
'namespace' => 'BitGames.Autogen'
]);
file_put_contents('bundle.cs', $code);
foreach($output as $name => $text)
file_put_contents($name, $text);