{{define "product.html"}} {{.Product.Name}} — Shop {{template "shop_header" .}}
{{if .Product.CategorySlug}} {{.Product.Category}} {{end}}

{{.Product.Name}}

{{if .Product.HasSale}} {{printf "%.0f" .Product.Price}} ₽ {{printf "%.0f" .Product.SalePrice}} ₽ -{{.Product.DiscountPercent}}% {{else}} {{printf "%.0f" .Product.Price}} ₽ {{end}}

{{plain .Product.Description}}

{{if .Product.Details}}

Описание

{{safeHTML .Product.Details}}
{{end}}
{{end}} {{define "category.html"}} {{.Category.Name}} — Shop {{template "shop_header" .}}

{{.Category.Name}}

{{if .Category.Description}}

{{.Category.Description}}

{{end}}
{{range .Products}} {{template "product_card" .}} {{else}}

В этой категории пока нет товаров.

{{end}}
{{end}}