This repository has been archived by the owner on May 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
ProductDetail.java
executable file
·79 lines (67 loc) · 2.21 KB
/
ProductDetail.java
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package japidviews._tags;
import java.util.*;
import java.io.*;
import cn.bran.japid.tags.Each;
import s.*;
import static play.templates.JavaExtensions.*;
import static cn.bran.play.JapidPlayAdapter.*;
import static play.data.validation.Validation.*;
import japidviews._layouts.*;
import static japidviews._javatags.JapidWebUtil.*;
import play.data.validation.Validation;
import play.mvc.Scope.*;
import models.*;
import play.data.validation.Error;
import japidviews._tags.*;
import controllers.*;
import play.mvc.Http.*;
import japidviews._javatags.*;
//
// NOTE: This file was generated from: japidviews/_tags/ProductDetail.html
// Change to this file will be lost next time the template file is compiled.
//
public class ProductDetail extends cn.bran.japid.template.JapidTemplateBase {
public static final String sourceTemplate = "japidviews/_tags/ProductDetail.html";
{
headers.put("Content-Type", "text/html; charset=utf-8");
}
// - add implicit fields with Play
final Request request = Request.current();
final Response response = Response.current();
final Session session = Session.current();
final RenderArgs renderArgs = RenderArgs.current();
final Params params = Params.current();
final Validation validation = Validation.current();
final cn.bran.play.FieldErrors errors = new cn.bran.play.FieldErrors(
validation);
final play.Play _play = new play.Play();
// - end of implicit fields with Play
public ProductDetail() {
super(null);
}
public ProductDetail(StringBuilder out) {
super(out);
}
private Product product;
public cn.bran.japid.template.RenderResult render(Product product) {
this.product = product;
long t = -1;
super.layout();
return new cn.bran.japid.template.RenderResultPartial(this.headers,
getOut(), t, actionRunners);
}
@Override
protected void doLayout() {
//------
p("<div class=\"product\">\n" +
" <img src=\"");// line 3
p(product.getName());// line 5
p(".jpg\" />\n" +
" <span class=\"productname\">");// line 5
p(product.getName());// line 6
p("</span>, <span class=\"price\">$");// line 6
p(product.getPrice());// line 6
p("</span>\n" +
"</div>\n");// line 6
}
}