1 whole fresh coconut
2 cups/500ml almond flour
1 cup/250ml butter, at room temperature
1 cup/250ml confectioners' sugar
2 eggs
1 cup/250ml all-purpose flour, plus more for the work surface
1/2 cup/125ml confectioners' sugar
Zest of 1 lime
3/4 cup/180ml cold butter, cubed
2 large or 3 small egg yolks
1 cup/250ml granulated sugar
1 pineapple, peeled, cored and chopped
2 cardamom pods, crushed (only use the seeds)
Fresh coconut shavings, for garnish