我已经坚持这个问题好几天了。我正在创建一个网站,厨师可以把他们的自助餐,他们的菜肴等。
这是我特别用来请厨师的代码:
//cs is the chefService
@GetMapping("/chef/{id}")
public String getChef(@PathVariable("id")Long id, Model model) {
Chef chef = cs.findById(id);
model.addAttribute("chef",chef);
return "che
我只想显示来自Shopify产品的产品,但是这里也显示了页面和帖子,这是我搜索结果的代码:
<div class="product-list">
{% if grid_results == false %}
{% for item in search.results %}
{% include 'search-result' %}
{% endfor %}
{% else %}
<div class="grid-uniform">
{% for item in s