From 32bfa591d72b8b1e38c911883c154977a6852e38 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 18 Dec 2024 18:38:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);