diff --git a/README.md b/README.md index cc33db5..80bf6b5 100644 --- a/README.md +++ b/README.md @@ -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);