org.rythmengine.exception.CompileException: location cannot be resolved Template: @import dwello.Utils @import dwello.model.* @import dwello.model.crm.* @import dwello.model.marketing.* @import dwello.model.pms.* @import dwello.model.dmp.* @import java.utils.* @import org.json.* @import dwello.model.pms.Space.SpaceType @import dwello.model.pms.Space.Units @args JSONObject aggregation @args Boolean amp @args Attachment attachment @args Audience audience @args String client_device @args String dwello_url @args SearchCriteria effective_filter @args String full_url @args String host @args JSONArray hot_projects @args String page_type @args String relative_path @args ExploreRoute route @args Session session @args Boolean static_resource @args String template_file @args String templateid @args String title @args String url
Search for properties in @location.getName()
City: Mumbai
Property in @location.getName()
@if(hot_projects.length() > 0){
Hot Projects
@for(int i = 0; i < hot_projects.length(); i++){ @{JSONObject hot=hot_projects.optJSONObject(i);}
@hot.optString("name")
₹ @hot.optString("minimum_total_price_readable")*
@hot.optString("configurations")
*Price is inclusive of all taxes.
}
} @{ Integer changes = 0; if(location_searches.optJSONObject(1).optInt("metric") > 0){ changes = 100*(location_searches.optJSONObject(0).optInt("metric") - location_searches.optJSONObject(1).optInt("metric"))/location_searches.optJSONObject(1).optInt("metric"); } }
About @location.getName()
Searches this week
@changes%
@location_searches.optJSONObject(0).optInt("metric")
@location.getDescription()
Find property in @location.getName() by
Configuration
@if(aggregation.has("bedrooms")){ @for(int i = 0; i < aggregation.optJSONArray("bedrooms").length(); i++){ @{JSONArray config = aggregation.optJSONArray("bedrooms").optJSONArray(i);}
@config.optString(0)
@config.optInt(1) Projects
@if(i%2==0){
} } }
@if(aggregation.has("ticket_size")){
Budget
@for(int i = 0; i < aggregation.optJSONArray("ticket_size").length(); i++){ @{JSONArray ticketSize = aggregation.optJSONArray("ticket_size").optJSONArray(i);}
@ticketSize.optString(0)
@ticketSize.optInt(1) Projects
}
} @if(aggregation.has("developer")){
Developers
@for(int i = 0; i < aggregation.optJSONArray("developer").length(); i++){ @{JSONArray developer = aggregation.optJSONArray("developer").optJSONArray(i);} @if(i%6==0){ } }
} @if(aggregation.has("developer_rating")){
Developer Rating
@for(int i = 0; i < aggregation.optJSONArray("developer_rating").length(); i++){ @{JSONArray developer_rating = aggregation.optJSONArray("developer_rating").optJSONArray(i);}
@developer_rating.optString(0)
@developer_rating.optInt(1) Projects
}
} @if(aggregation.has("apartment_size")){
Apartment Size
@for(int i = 0; i < aggregation.optJSONArray("apartment_size").length(); i++){ @{JSONArray apartmentSize = aggregation.optJSONArray("apartment_size").optJSONArray(i);}
@apartmentSize.optString(0)
@apartmentSize.optString(1) Projects
@if(i%2==0){
} }
} @if(aggregation.has("project_segment")){
Segments
@for(int i = 0; i < aggregation.optJSONArray("project_segment").length(); i++){ @{JSONArray segment = aggregation.optJSONArray("project_segment").optJSONArray(i);}
@segment.optString(0)
@segment.optInt(1) Projects
}
} @if(aggregation.has("possession")){
Possession
@for(int i = 0; i < aggregation.optJSONArray("possession").length(); i++){ @{JSONArray possession = aggregation.optJSONArray("possession").optJSONArray(i);}
@possession.optString(0)
@possession.optString(1) Projects
}
} @if(aggregation.has("offers")){
Offers
@for(int i = 0; i < aggregation.optJSONArray("offers").length(); i++){ @{JSONArray offer = aggregation.optJSONArray("offers").optJSONArray(i);} }
} @if(aggregation.has("locality")){
Localities in @location.getName()
@for(int i = 0; i < aggregation.optJSONArray("locality").length(); i++){ @{JSONArray locality = aggregation.optJSONArray("locality").optJSONArray(i);}
@locality.optString(0)
@locality.optString(1) Projects
}
} @if(articles.size() > 0){
Recommnded Reads for @location.getName()
@for(Article article : articles){
@article.getTitle()
@article.getSummary()
}
} Relevant template source lines: ------------------------------------------------- 1123:
1124: 1127:
>> 1128:
Search for properties in @location.getName()
1129:
1130:
1131:
1132: 1133: Relevant Java source lines: ------------------------------------------------- 368: 369: @Override public org.rythmengine.utils.TextBuilder build(){ 370: buffer().ensureCapacity(46670); 371: p("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n
\n
Search for properties in "); //line: 1128 372: >> 373: try{pe(location.getName());} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 1128 374: p("
\n
\n
\n\n\n\n\n
\n
\n
\n
\n
\n
City: Mumbai
\n
Property in "); //line: 1143 375: 376: try{pe(location.getName());} catch (RuntimeException e) {__handleTemplateExecutionException(e);} //line: 1143 377: p("
\n