Skip to content

Commit 857ade9

Browse files
committed
refactor: remove HTML wrapper from generated template files
1 parent 0179b40 commit 857ade9

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

bin/generator.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -805,22 +805,8 @@ function createViewFile(filePath, featureName, kebabCase) {
805805
i18nPrefix
806806
});
807807

808-
// Create the full HTML document
809-
const fullHtmlContent = `<!DOCTYPE html>
810-
<html lang="en">
811-
<head>
812-
<meta charset="UTF-8">
813-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
814-
<title>${featureName}</title>
815-
<link rel="stylesheet" href="/css/main.css">
816-
</head>
817-
<body>
818-
${htmlContent}
819-
</body>
820-
</html>`;
821-
822-
// Write the file
823-
fs.writeFileSync(filePath, fullHtmlContent);
808+
// Write the file with just the template content (no full HTML wrapper)
809+
fs.writeFileSync(filePath, htmlContent);
824810

825811
// Create the JS view file
826812
const jsViewsDir = path.join(projectRoot, 'public', 'js', 'views');

0 commit comments

Comments
 (0)