Skip to content

Commit

Permalink
consolidate .shtml as the correct file extension for super templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Jul 24, 2024
1 parent 6354b53 commit 51c2dbf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cli/fmt.zig
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ fn formatFile(
break :blk .html;
}

if (std.mem.eql(u8, ext, ".shtml") or
std.mem.eql(u8, ext, ".super"))
{
if (std.mem.eql(u8, ext, ".shtml")) {
break :blk .super;
}
return;
Expand Down Expand Up @@ -291,7 +289,7 @@ const Command = struct {
\\
\\ Detected extensions:
\\ HTML .html, .htm
\\ SuperHTML .shtml, .super
\\ SuperHTML .shtml
\\
\\Options:
\\
Expand Down

0 comments on commit 51c2dbf

Please sign in to comment.