<%method js_tags>
% if(my $files = $m->notes('js_files')) {
% foreach my $url (@$files) {
<script type="text/javascript" src="<% $url %>"></script>
% }
% }
% if(my $snippets = $m->notes('js_snippets')) {
<script type="text/javascript">
$(document).ready(function(){
% foreach my $code (@$snippets) {
<% $code |n %>
% }
});
</script>
% }
</%method>
<%method css_tags>
% if(my $files = $m->notes('css_files')) {
% foreach my $url (@$files) {
<link rel="stylesheet" type="text/css" href="<% $url %>">
% }
% }
</%method>