Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
263 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
lib/vraptor-scaffold/generators/app/templates/freemarker/main.ftl.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<@html.css "application"/> | ||
<title>Vraptor Scaffold</title> | ||
${head} | ||
</head> | ||
|
||
<body> | ||
${body} | ||
<% | ||
jquery_file = File.join(destination_root, Configuration::WEB_APP, "javascripts", "jquery.min.js") | ||
if (File.exists?(jquery_file)) | ||
%><@html.js "jquery.min"/> | ||
<% end %><@html.js "application"/> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
lib/vraptor-scaffold/generators/app/templates/jsp/main.jsp.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<% sitemesh_directive = "<%@ taglib uri=\"http://www.opensymphony.com/sitemesh/decorator\" prefix=\"decorator\" %\>" %><%= sitemesh_directive %> | ||
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title><decorator:title default="Vraptor Scaffold"/></title> | ||
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/stylesheets/application.css"/> | ||
<decorator:head/> | ||
</head> | ||
<body> | ||
<decorator:body/> | ||
<% | ||
jquery_file = File.join(destination_root, Configuration::WEB_APP, "javascripts", "jquery.min.js") | ||
if (File.exists?(jquery_file)) | ||
%><script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/jquery.min.js"></script> | ||
<% end %><script type="text/javascript" src="${pageContext.request.contextPath}/javascripts/application.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.