]> iEval git - plack-app-gruntmaster.git/commitdiff
Make CSS/JS links end with .css/.js
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 11 Feb 2014 07:16:13 +0000 (09:16 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 11 Feb 2014 07:16:13 +0000 (09:16 +0200)
js/90-custom.js
lib/Plack/App/Gruntmaster.pm
tmpl/header.en

index 3759c1b4cfdb14fb75a74426e94ad4b981eaaa91..750aaa101822763bfb7171b430d375e4089640f0 100644 (file)
@@ -1,7 +1,7 @@
 (function(){
        'use strict';
        function set_style(name){
-               $('#stylesheet').attr("href", "/css/" + name);
+               $('#stylesheet').attr("href", "/css/" + name + ".css");
                localStorage.setItem("theme", name);
        }
 
index 63aa12f90a71aa41cebfa8b5a2fb0080d8f42920..a0711013f99fec760e5b36f50cb8f77ce495da7e 100644 (file)
@@ -58,8 +58,8 @@ BEGIN{
        my $word = qr,(\w+),a;
        my $ct = qr,(?:\/ct/$word)?,a;
 
-       get qr,/css/$word, => 'CSS';
-       get qr,/js, => 'JS';
+       get qr,/css/$word\.css, => 'CSS';
+       get qr,/js\.js, => 'JS';
 
        get qr,/ct/, => 'Ct';
        get qr,/ct/$word/, => 'Ct::Entry';
index 5ca79760e5d4dd74e5d17351d47dc6c29722eb9c..c4f51f6c9c07e99040daf75ed209e23f28525438 100644 (file)
@@ -3,8 +3,8 @@
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-<link rel="stylesheet" href="/css/cyborg" id="stylesheet">
-<script src="/js" type="text/javascript"></script>
+<link rel="stylesheet" href="/css/cyborg.css" id="stylesheet">
+<script src="/js.js" type="text/javascript"></script>
 
 <nav class="navbar navbar-default navbar-static-top" role="navigation">
 <div class="container-fluid">
This page took 0.027124 seconds and 4 git commands to generate.