lsg

Lumidify Site Generator
git clone git://lumidify.org/git/lsg.git
Log | Files | Refs | README | LICENSE

generate.pl (754B)


      1 #!/usr/bin/env perl
      2 
      3 # FIXME: standardize var names (e.g. $pageid, $page)
      4 
      5 # REQUIREMENTS: Text::Markdown
      6 
      7 # lsg.pl - Lumidify Site Generator
      8 # Written by lumidify <nobody@lumidify.org>
      9 # Last updated: 2019-08-21
     10 #
     11 # To the extent possible under law, the author has dedicated
     12 # all copyright and related and neighboring rights to this
     13 # software to the public domain worldwide. This software is
     14 # distributed without any warranty.
     15 #
     16 # You should have received a copy of the CC0 Public Domain
     17 # Dedication along with this software. If not, see
     18 # <http://creativecommons.org/publicdomain/zero/1.0/>.
     19 
     20 use strict;
     21 use warnings;
     22 use FindBin;
     23 use lib "$FindBin::Bin";
     24 use LSG;
     25 
     26 my $path = $#ARGV >= 0 ? $ARGV[0] : ".";
     27 LSG::init($path);
     28 LSG::generate_site();