Skip to content

Commit

Permalink
raoo to cro
Browse files Browse the repository at this point in the history
  • Loading branch information
librasteve committed Nov 26, 2024
1 parent 2eec112 commit 912a476
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
File renamed without changes.
4 changes: 1 addition & 3 deletions bin/synopsis-raoo
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ role MyPage does Page {
has $.description;
has $.title;

method TWEAK {
self.meta: {:charset<utf-8>};
self.meta: {:name<viewport>, :content<width=device-width, initial-scale=1>};
submethod TWEAK {
self.meta: {:name<description>, :content($!description)};

self.link: {:rel<stylesheet>, :href<https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css> };
Expand Down
7 changes: 6 additions & 1 deletion lib/HTMOO.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ role Head {
has Link @.links;
has Style $.style is rw;

#some basic defaults
submethod TWEAK {
self.metas.append: Meta.new: attrs => {:charset<utf-8>};
self.metas.append: Meta.new: attrs => {:name<viewport>, :content<width=device-width, initial-scale=1>};
}

method render {
opener($!tag) ~ "\n" ~
"{ (.render for @!metas ).join }" ~
Expand Down Expand Up @@ -136,7 +142,6 @@ role Page {
method body($inner) {
self.html.body = Body.new(:$inner)
}

}


Expand Down

0 comments on commit 912a476

Please sign in to comment.