owlcode.tech/templates/page/attribute.html.ep

21 lines
655 B
Plaintext
Raw Normal View History

2023-05-03 05:32:55 +02:00
% use Data::Dumper;
% use DateTime::Format::ISO8601;
%
% use Mojo::DOM;
% use Mojo::Util;
%
% use OwlcodeTech::Posts;
2023-05-03 05:32:55 +02:00
%
% my $category = stash 'category';
% my $attribute = stash 'attribute';
% my $description_og = '<div>'.$attribute->{description}.'</div>';
% $description_og = Mojo::DOM->new($description_og)->all_text;
2023-05-03 05:32:55 +02:00
% my $posts = stash 'posts';
% layout 'default', current_category_slug => $category->{slug}, description_og => $description_og;
2023-05-03 05:32:55 +02:00
% title $attribute->{title};
2023-05-17 07:26:46 +02:00
<div id="first-box" class="description margin">
2023-05-03 05:32:55 +02:00
<h1><%= $attribute->{title} %></h1>
<%== $attribute->{description} %>
%= include 'page/_list_posts', posts => $posts;
</div>