Ghost/core/frontend/services/themes
Fabien 'egg' O'Carroll d19452147d
🐛 Fixed @price template data to work with price helper (#12764)
closes https://github.com/TryGhost/Team/issues/545

The price helper requires an object with amount & currency properties to
work correctly. This updates the @price data object to expose these.

In order to maintain backward compatibility with using the @price data
as primitive number values, we add a valueOf method which returns the
legacy dollar amount value.

This means you can use {{price @price.monthly}} OR
{{@price.monthly}} - the second of which will output the dollar
amount.

A new theme fixture was added to test both usages of the @price data
2021-03-18 16:13:10 +00:00
..
config Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
engines Refactore theme engine resolution module 2021-02-24 22:38:56 +13:00
handlebars Fixed circular dependency warning for the proxy service (#12746) 2021-03-11 16:30:49 +00:00
activate.js 🐛 Fixed incorrect locale loading when changing themes 2021-01-04 17:26:22 +13:00
active.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
engine.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
i18n.js 🐛 Fixed incorrect locale loading when changing themes 2021-01-04 17:26:22 +13:00
index.js Fixed linting error 2021-02-22 21:16:05 +00:00
list.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
loader.js Refactored package-json lib into a class 2020-11-25 09:19:35 +00:00
middleware.js 🐛 Fixed @price template data to work with price helper (#12764) 2021-03-18 16:13:10 +00:00
preview.js 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
storage.js Fixed fs error during theme install deleting active theme (#12688) 2021-02-23 08:49:48 +00:00
ThemeStorage.js Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00
to-json.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
validate.js Switched frontend i18n requires to go through proxy 2020-11-26 14:00:28 +00:00