diff options
author | Ole Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com> | 2025-04-13 07:18:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-13 07:18:45 +0200 |
commit | 4ea3a099b05fa910498bfbf1b2d7387118355472 (patch) | |
tree | c248cf6764412471ee3e0d1218761bee19fb396a /web/api/read/template-list | |
parent | 09710c061d5b8ae86b3dfe49f4b8936c13a10535 (diff) |
Diffstat (limited to 'web/api/read/template-list')
-rwxr-xr-x | web/api/read/template-list | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/web/api/read/template-list b/web/api/read/template-list deleted file mode 100755 index 81b9986..0000000 --- a/web/api/read/template-list +++ /dev/null @@ -1,21 +0,0 @@ -#! /usr/bin/perl -# vim:ts=8:sw=8 - -use lib '/opt/gondul/include'; -use nms::web; -use strict; -use warnings; - -my @dirs = ("/opt/gondul/web/templates","/opt/gondul/data/templates"); - -foreach my $template_dir (@dirs) { -opendir (DIR, $template_dir) or next; -while (my $file = readdir(DIR)) { - next if ($file =~ m/^\./); - my %meh; - $meh{'file'} = $file; - - push @{$nms::web::json{'templates'}},\%meh; -} -} -nms::web::finalize_output(); |