/
tmpl_new_proj_web_conf_template.go
46 lines (44 loc) · 1.33 KB
/
tmpl_new_proj_web_conf_template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright 2014 The goyy Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package main
var tmplNewProjWebConfTemplate = `<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE env PUBLIC "-//GOYY//DTD ENV 1.0//EN" "http://goyy.org/dtd/env-1.0.dtd">
<configuration>
<environments default="development">
<environment id="development">
<html name="<%.NewProjName%>">
<enable>true</enable>
<reloaded>true</reloaded>
<mappings>
<mapping path="/example" dir="../<%.NewProjName%>-example/templates/web"/>
</mappings>
</html>
<template name="<%.NewProjName%>">
<enable>true</enable>
<reloaded>true</reloaded>
</template>
</environment>
<environment id="test">
<html name="<%.NewProjName%>">
<enable>true</enable>
<reloaded>false</reloaded>
</html>
<template name="<%.NewProjName%>">
<enable>true</enable>
<reloaded>false</reloaded>
</template>
</environment>
<environment id="production">
<html name="<%.NewProjName%>">
<enable>true</enable>
<reloaded>false</reloaded>
</html>
<template name="<%.NewProjName%>">
<enable>true</enable>
<reloaded>false</reloaded>
</template>
</environment>
</environments>
</configuration>
`