Installation on core perl 5.18.2 via
cpanm -l /tmp/test Package
with all sources cached in .cpanm (to eliminate download times). Parallel times are done using
HARNESS_OPTIONS=j9
Template reuse is awesome, either via extending templates or via layouts. But what about together? A tiny change to rendering allows them to be combined, which makes it even easier to design, manage, and maximise reuse of templates.
The Rendering Guide clearly shows the value of setting a default layout and also the value of template inheritance (using 'extends'), but currently these can't be used together: the default layout is ignored and therefore missing from the rendered output.
perl -MMojo::Base=strict -MEncode -E'say qq{$_: }. encode($_, q{Ue: }. chr(220) .q{; Euro: }. chr(8364)) for qw(utf-8 latin1 iso-8859-15 utf-16)' |
open my $handle, '<:encoding(UTF-8)', $file; | |
open my $handle, '<:encoding(iso-8859-1)', $file; | |
open my $handle, '<', $file; | |
binmode $handle, ':encoding(UTF-8)'; | |
use open ':encoding(UTF-8)'; | |
use open ':encoding(iso-8859-1)'; | |
use open ':locale'; |
https://github.com/tanakahisateru/js-markdown-extra
Promising in terms of functionality, but still very buggy and currently has a slow rate of development.
https://leeoniya.github.io/reMarked.js/
Definitely worth considering. (Also: nice page of links.)
https://github.com/jmcmanus/pagedown-extra
Has a good list of desirable functionality, but far too heavyweight, as proved by the time it takes to render its homepage.
use Mojo::Base -strict; | |
use Test::More; | |
use Test::Mojo; | |
use FindBin; | |
require "$FindBin::Bin/../x"; | |
my $t = Test::Mojo->new; |
# Want to remove all reference to lib/* except lib/Minion/Backend/* | |
git filter-branch --tag-name-filter cat \ | |
--index-filter 'git rm --cached -qr -- lib && git reset -q $GIT_COMMIT -- lib/Minion/Backend t' \ | |
--prune-empty \ | |
-- --all |
wget https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.27-75.0/source/debian/percona-server-5.6_5.6.27-75.0-1.debian.tar.gz
wget https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.27-75.0/source/debian/percona-server-5.6_5.6.27-75.0-1.dsc
wget https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.27-75.0/source/debian/percona-server-5.6_5.6.27-75.0-1_source.changes
wget https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.27-75.0/source/debian/percona-server-5.6_5.6.27-75.0.orig.tar.gz
apt-get --only-source build-dep percona-server-5.6
dpkg-source -x percona-server-5.6_5.6.27-75.0-1.dsc
cd percona-server-5.6-5.6.27-75.0
#!/usr/bin/env perl | |
use strict; | |
# Get all the letters from stdin: | |
my $input = do {local $/; <>}; | |
$input =~ s/[^a-zA-Z]//g; | |
# All 3+ letter English words, longest to shortest: | |
my @long = grep {length > 2} | |
sort {length $b <=> length $a} |
MOJO_TEMPLATE_DEBUG=1 perl -Mojo -E'my $c = app->build_controller; $c->render_to_string(inline => "")' |