0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/frontend/services
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
..
apps
redirects Updated code to reflect js-yaml dependency changes 2021-02-10 11:39:30 +00:00
routing Finished to move the frontend to themes v4 2021-02-23 15:02:11 +01:00
rss 🏗 Changed internal URL storage format to use __GHOST_URL__ (#12731) 2021-03-05 13:54:01 +00:00
settings Updated code to reflect js-yaml dependency changes 2021-02-10 11:39:30 +00:00
sitemap
themes 🐛 Fixed @price template data to work with price helper (#12764) 2021-03-18 16:13:10 +00:00
url Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
proxy.js Refactored core/server/lib/image for Dependency Injection (#12463) 2020-12-09 13:19:22 +01:00