2 ms·
> although the naming of results in Python is quite useful I assume you mean named captures? C:\>perl -E "'abc1234asf' =~ /(?<one>\d+)/; say $+{one};"
by Mithaldu 13y ago
> although the naming of results in Python is quite useful
I assume you mean named captures?
C:\>perl -E "'abc1234asf' =~ /(?<one>\d+)/; say $+{one};"
1234
> template toolkit
Please try Text::Xslate. :)
- ChuckMcM 13y agoI will look at Xslate. My simple system basically combined a markdown (with some enhancements) "base" document, with custom image tags and source tags. The current source to HTML mechanism used vim to do the syntax coloring, then dump out the html with ToHTML and then processed by the perl code to pull out the actual code. Given that I've been moving code over to github my plan for the future is just to pull gists into the HTML pages. To the extent that I can simplify steps with Xslate we'll see. It still takes too long to go from 'thought' to 'page' (and my 'schematic description' -> SVG (or PNG) schematic work is still incomplete)