Changes for version v6.0.0 - 2019-05-06
- App::WRT::Date
- Move month_name() in here from App::WRT, add tests.
- App::WRT::EntryStore:
- Hash file types for entries (directory or flatfile)
- Use keys of file type hash for complete list of entries.
- has_prop($entry, $property)
- is_dir($entry), is_file($entry), is_extant($entry)
- parent_of($entry)
- has_index($entry)
- Make EntryStore cache whether a file is a flatfile or a directory, as well as its existence, in a single hash.
- Include index flatfiles in @source_files for use by has_index()
- Various tests.
- App::WRT::FileIO
- Still duplicates a bunch of shit from Util, so that needs sorted.
- App::WRT::Renderer
- Convert to a proper class.
- Add experimental FileIO class to use in Renderer (imperfect, tricky, still thinking about this). The idea is to separate out the concerns of reading and writing the filesystem.
- App::WRT
- Refactor display() and improve tests
- Use "@entries" instead of "@options" for clarity
- Handle entry names that might evaluate as false
- Test running display() without any params
- Rename expand_option() -> expand_alias(), refactor
- Use EntryStore::has_prop() to detect wrt-noexpand.prop
- year(), month(), entry() partially rewritten to use EntryStore
- year() should handle months which are a flatfile
- Refactor icon_markup() to use is_file() / is_dir() / is_extant(), add tests.
- Add subtitle to feeds
- Refactor display() and improve tests
- bin/wrt-ls is now a "modulino" with tests
- bin/display errors on non-existent entries
Documentation
WRiting Tool, a static site/blog generator and related utilites
show configuration values, including defaults
print static HTML from wrt entries
initialize a stub wrt repository
list
utility for rendering static HTML files from wrt entries
Modules
WRiting Tool, a static site/blog generator and related utilities
a small collection of date utility functions
model the contents of a wrt repo's entry_dir
render a wrt repo to publishable HTML
Provides
in lib/App/WRT/HTML.pm
in lib/App/WRT/Image.pm
in lib/App/WRT/Markup.pm
in lib/App/WRT/Util.pm
Examples
- example/archives/2014/1/1/index
- example/archives/2014/1/1/test_entry
- example/archives/2014/1/2/index
- example/archives/2014/1/2/tag-something.prop
- example/archives/icon_test/dir/index
- example/archives/icon_test/dir/index.icon.png
- example/archives/icon_test/dir/subentry
- example/archives/icon_test/dir/subentry.icon.png
- example/archives/icon_test/textfile
- example/archives/icon_test/textfile.icon.png
- example/archives/image_test/index
- example/archives/image_test/machin_stderr.png
- example/archives/include_test/index
- example/files/include_me
- example/templates/basic
- example/wrt.json