App-WRT

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

example/blog/archives/2014/1/2/tag.something.prop
example/blog/archives/icon_test/dir/index
example/blog/archives/icon_test/dir/index.icon.png
example/blog/archives/icon_test/dir/subentry
example/blog/archives/icon_test/dir/subentry.icon.png
example/blog/archives/icon_test/textfile
example/blog/archives/icon_test/textfile.icon.png
example/blog/archives/image_test/index
example/blog/archives/image_test/machin_stderr.png
example/blog/archives/include_test/index
example/blog/archives/noexpand_test/do_not_expand_me
example/blog/archives/noexpand_test/index
example/blog/archives/noexpand_test/wrt-noexpand.prop
example/blog/archives/prop_value_test/foo.prop
example/blog/archives/tags_test/tag.animals.platypus.prop
example/blog/archives/tags_test/tag.topics.example.prop
example/blog/files/include_me
example/blog/public/1952/2/13/index.html
example/blog/public/1952/2/index.html
example/blog/public/1952/index.html
example/blog/public/2012/index.html

MANIFEST  view on Meta::CPAN

example/blog/public/icon_test/dir/index.icon.png
example/blog/public/icon_test/dir/subentry.icon.png
example/blog/public/icon_test/dir/subentry/index.html
example/blog/public/icon_test/index.html
example/blog/public/icon_test/textfile.icon.png
example/blog/public/icon_test/textfile/index.html
example/blog/public/image_test/index.html
example/blog/public/image_test/machin_stderr.png
example/blog/public/include_test/index.html
example/blog/public/index.html
example/blog/public/noexpand_test/do_not_expand_me/index.html
example/blog/public/noexpand_test/index.html
example/blog/public/noexpand_test/wrt-noexpand.prop
example/blog/templates/default
example/blog/wrt.json
example/flat_site/pages/index
example/flat_site/templates/default
example/flat_site/wrt.json
lib/App/WRT.pm
lib/App/WRT/Date.pm
lib/App/WRT/EntryStore.pm

example/blog/public/noexpand_test/do_not_expand_me/index.html  view on Meta::CPAN

<!DOCTYPE html>
<html>
<head>
  <title>wrt::noexpand_test/do_not_expand_me</title>

  <meta name="keywords" content="some test stuff" />

  <meta name="description" content="a test wrt site" /> 

  <meta name="author" content="Example Author" />

  <link rel="stylesheet" href="https://example.com/css/p1k3.css" />
  <link rel="icon" type="image/x-png" href="https://example.com/favicon.png" />
  <link rel=alternate type="application/atom+xml" title="wrt atom feed" href="https://example.com/feed" />
  <link rel=feed type="application/atom+xml" title="wrt atom feed" href="https://example.com/feed" />
  <link rel="alternate" title="wrt JSON feed" type="application/json" href="https://example.com/feed.json" />
</head>

<body>

<a href="https://example.com/" title="newest entries">new</a>
<a href="https://example.com/all/" title="all entries">all</a>


<h1>noexpand_test/do_not_expand_me</h1>



<article><div class="entry"><p>SHOULD NOT DISPLAY</p>

<p class="datestamp"><a href="https://example.com/">wrt</a> /
<a href="https://example.com/noexpand_test/" title="noexpand_test">noexpand_test</a> /
<a href="https://example.com/noexpand_test/do_not_expand_me/" title="do_not_expand_me">do_not_expand_me</a></p>
</div></article>

<div class=entry-metadata></div>

<p><small><em>public domain</em></small></p>

<p></p>

</body>
</html>

example/blog/public/noexpand_test/index.html  view on Meta::CPAN


<a href="https://example.com/" title="newest entries">new</a>
<a href="https://example.com/all/" title="all entries">all</a>


<h1>noexpand_test</h1>



<article><div class="entry"><p>SHOULD DISPLAY</p>
<p><em>more:</em>  <a href="https://example.com/noexpand_test/do_not_expand_me" title="do_not_expand_me">do_not_expand_me</a></p>

<p class="datestamp"><a href="https://example.com/">wrt</a> /
<a href="https://example.com/noexpand_test/" title="noexpand_test">noexpand_test</a></p>
</div></article>

<div class=entry-metadata></div>

<p><small><em>public domain</em></small></p>

<p></p>

t/wrt.t  view on Meta::CPAN

    'got a JSON Feed with a title'
  ) or diag($feed_hashref);

# not expanding entries with wrt-noexpand

  my $with_noexpand = $w->display('noexpand_test');
  # diag($with_noexpand);
  unlike(
    $with_noexpand,
    qr/SHOULD NOT DISPLAY/,
    'noexpand_test does not contain text of sub-entry do_not_expand_me'
  ) or diag($with_noexpand);

# displaying default entry when no entries are given

  my $with_no_entries = $w->display();
  like(
    $with_no_entries,
    qr{\Q<title>wrt::new</title>\E},
    'display the default entry (new) when no entries are given'
  ) or diag($with_no_entries);

t/wrt_entrystore.t  view on Meta::CPAN

  );

# checking entries are renderable or not:

  ok(
    $es->is_renderable('2014'),
    '2014 is renderable'
  );

  ok(
    $es->is_renderable('i_do_not_exist'),
    'a nonexistent entry path is theoretically renderable'
  );

# listing entries like 2014/1/1 for an individual day:

  my (@all_day_entries) = $es->all_days();
  ok(
    scalar @all_day_entries == 3,
    'got 3 day entries from example archive, as expected'
  );

t/wrt_entrystore.t  view on Meta::CPAN

    'found correct parent for 2014/1/2'
  ) or diag($date_parent);

  my $icon_parent = $es->parent('icon_test');
  ok(
    ! defined $icon_parent,
    'found no parent for icon_test'
  ) or diag($icon_parent);

  eval {
    $es->parent('i_do_not_exist');
  };
  ok(
    $@,
    "croaked on trying to find parent of a nonexistent entry"
  );

# finding children of entries, sub-entries

  my @children = $es->children('2013');
  ok(



( run in 0.356 second using v1.01-cache-2.11-cpan-0a987023a57 )