From b6c758f2fc2cb502ed194f2700e033564f2521f4 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Tue, 22 Sep 2015 12:06:13 +0800 Subject: Added server option "useCdn", use template statement to route resources' source --- public/views/foot.ejs | 9 +++++++++ public/views/head.ejs | 8 +++++++- public/views/pretty.ejs | 14 ++++++++++++-- 3 files changed, 28 insertions(+), 3 deletions(-) (limited to 'public/views') diff --git a/public/views/foot.ejs b/public/views/foot.ejs index b545841f..0f568643 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -1,9 +1,18 @@ +<% if(useCDN) { %> + + + + + + +<% } else { %> +<% } %> diff --git a/public/views/head.ejs b/public/views/head.ejs index 0518ebc7..816c2a26 100644 --- a/public/views/head.ejs +++ b/public/views/head.ejs @@ -7,8 +7,15 @@ <%- title %> +<% if(useCDN) { %> + + + +<% } else { %> + +<% } %> @@ -20,7 +27,6 @@ - diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index cc4f80d2..0004bb7c 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -10,9 +10,14 @@ <%- title %> - - + + <% if(useCDN) { %> + + + <% } else { %> + + <% } %> @@ -45,8 +50,13 @@ +<% if(useCDN) { %> + + +<% } else { %> +<% } %> -- cgit v1.2.3