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 @@