~rjpcasalino/bss

875b1cf65f6767a97aadae5a868d5cd78724d948 — rjpc 1 year, 7 months ago 116785c
README updates
2 files changed, 14 insertions(+), 6 deletions(-)

M README.md
M bss.pl
M README.md => README.md +9 -2
@@ 15,7 15,7 @@ bss reads manifest.ini for its configuration options:
	collections=posts
	exclude=*.md,*.markdown,templates,junk
	encoding=UTF-8
	evaluate perl=0 # use perl false boolen value
	evaluate perl=0 # use perl false boolen value; this only works on template files
	[server]
	port=8090



@@ 51,8 51,15 @@ $ BSS_DOCROOT=/path/to/your/_site bss build --server
#### build with nix
```
$ nix build --extra-experimental-features nix-command --extra-experimental-features flakes
# this will place bss in your nix profile so it's "installed" in a sense. This is the replacement for nix-env...

# this will place bss in your nix profile so it's "installed" in a sense. This is the replacement for nix-env

$ nix profile --extra-experimental-features nix-command --extra-experimental-features flakes install

# or just
$ nix build
# and copy the result/bin/bss to run/wrappers/bin
# this won't survive a reboot.
```

## FIXME

M bss.pl => bss.pl +5 -4
@@ 16,16 16,17 @@ no warnings "exiting";
no warnings "uninitialized";

# FIXME
# this was very strange but Template Toolkit is doing something strange
# and I was getting these warnings:
# Template Toolkit is doing something strange
# I was getting these warnings:
# each on anonymous hash will always start from the beginning at /nix/store/longhash-perl5.36.0-Template-Toolkit-3.009/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Template/Document.pm line 75.
# each on anonymous hash will always start from the beginning at /nix/store/longhash-perl5.36.0-Template-Toolkit-3.009/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Template/Provider.pm line 376.
# each on anonymous hash will always start from the beginning at /nix/store/longhash-perl5.36.0-Template-Toolkit-3.009/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Template/Provider.pm line 875.
# each on anonymous hash will always start from the beginning at /nix/store/longhash-perl5.36.0-Template-Toolkit-3.009/lib/perl5/site_perl/5.36.0/x86_64-linux-thread-multi/Template/Provider.pm line 894.
# this strange syntax below is cobbled together from answers on SO
# the syntax below is cobbled together from answers on SO
# see: https://stackoverflow.com/questions/27556539/any-way-to-turn-off-warning-generated-in-use-module-statement-in-perl
# and: https://stackoverflow.com/questions/19490351/how-can-i-suppress-warnings-from-a-perl-function
# note that changing "require" to "use" will make the warning reappear
# also see: https://perldoc.perl.org/functions/use
BEGIN {
    local $SIG{__WARN__} = sub {};
    require Template;


@@ 63,7 64,7 @@ my $quit     = 0;
#    while ( waitpid( -1, "WNOHANG" ) > 0 ) { }
#};

$SIG{INT} = sub { say "\nGoodbye!"; sleep 1; $quit++ };
$SIG{INT} = sub { say "\nGoodbye!"; $quit++ };

GetOptions(
    \%opts, qw(