Story 1.3: templates php base

This commit is contained in:
2026-02-04 15:33:03 +01:00
parent e1395a235e
commit 2aa77a8c10
10 changed files with 175 additions and 49 deletions

View File

@@ -31,7 +31,11 @@ Assert-True (Test-Path 'logs/.gitkeep') 'Missing logs/.gitkeep'
Assert-True (Test-Path 'index.php') 'Missing index.php'
$index = Get-Content -Raw 'index.php'
Assert-True ($index -match 'Hello World') 'index.php missing Hello World'
Assert-True ($index -match 'meta name="viewport"') 'index.php missing viewport meta'
if (-not ($index -match 'meta name="viewport"')) {
Assert-True (Test-Path 'templates/header.php') 'Missing templates/header.php for viewport meta'
$header = Get-Content -Raw 'templates/header.php'
Assert-True ($header -match 'meta name="viewport"') 'Header missing viewport meta'
}
Assert-True (Test-Path '.gitignore') 'Missing .gitignore'
$gitignore = Get-Content -Raw '.gitignore'
@@ -40,7 +44,6 @@ $required = @(
'vendor/',
'node_modules/',
'logs/*.log',
'assets/css/output.css',
'.idea/',
'.vscode/',
'.DS_Store'