(CNN) — Cobblestone streets climb up Signal Hill, past homes painted in bright colors that even from the sky stand out against the sober tones of most buildings in Cape Town.

But that's just the most obvious of the ways that Bo-Kaap is remarkable.

It's a neighborhood that has preserved a distinctive identity over centuries of change in South Africa, and created a cuisine that's both global and unique.

"The place is special, it's as simple as that," says chef Reuben Riffel. "I come from a small town. Community is quite important, but things change, and in our village it has changed.

Bo-Kaap is known for its brightly colored houses. Dan Kitwood/Getty Images

"I get a sense that in the Bo-Kaap it has stayed. They have managed to keep the traditions and to keep that going, and I love that about it."

Bo-Kaap sits just above downtown.

When the area was first occupied in the late 1700s, European craftsmen lived there alongside free black people and freed slaves, who were brought by the Dutch from Asia, East Africa and Madagascar.

Many were Muslims, some taken from their homes for their opposition to European colonization.

Deep traditions

After emancipation in 1834, more freed slaves moved into Bo-Kaap, turning it into a predominantly Muslim area.

That status was formalized in law in 1957, when the apartheid government declared Bo-Kaap a "Malay group area" and forced everyone else to move out.

While apartheid laws destroyed communities across South Africa, in Bo-Kaap the trauma of the forced relocations encouraged those who remained to deepen their traditions.

That gave food an especially powerful place in the community's memory.

"The slaves that arrived at the Cape of Good Hope as early as 1658 brought recipes and spices with them, indigenous from the countries they hailed from," says Cariema Isaacs, author of "My Cape Malay Kitchen."

"However, some ingredients that were not readily available locally were substituted and the modified version of a homegrown recipe now became a traditional Cape Malay recipe."

South Africa's popular memory of history tends, understandably, to focus on the more recent past and the struggle against apartheid.

The dishes have a mix of flavors from afar, such as chili, cardamom and cloves. Courtesy Nigel Deary © Penguin Random House South Africa (Pty) Ltd 2016

Rhythms of life

Cape Malay food reaches into a history that's often overlooked, to the multicultural city that existed before apartheid, with a culinary tradition that traveled down foodways stretching across the entire planet.

But the food is also tied to intimately local details of life rhythm's in Bo-Kaap -- the days of the week when the fishmonger passed, or when salaries were paid, became connected to snoek fish or to choicer meats.

"When you say the name Bo-Kaap, I become really emotional," says Isaacs. "Because it's one of those places that you would love to grow up in.

"It's got such a lovely sense of community. Food is one element of the emotions that run very deep in the community."

Many of those foods are now so embedded in South Africa's national identity that few people would even think about their origins.

Cape Malay dishes like bredie stews feature in broad South African cookbooks, but its origins are revealed by the spices: cinnamon, cardamom, ginger, cloves and chili.

Samoosas and fried chili bites that originated as street food in Cape Town are routinely served as hors d'oeuvres at corporate events or in high-end restaurants like Riffel's at the luxurious One&Only hotel

The success of Cape Malay cuisine, combined with South Africa's rapid embrace of urbanism, has brought new pressures on Bo-Kaap.

Smaller bites are served as hors d'oeuvres. Courtesy Nigel Deary © Penguin Random House South Africa (Pty) Ltd 2016

The neighborhood itself occupies prime real estate near the city center, making the working-class neighborhood a prime target for gentrification.

Vibrancy of spices

The end of apartheid and sanctions brought an influx of international fast food that competes with local quick eats.

Freedom to move and to thrive in any profession means that many people have done just that.

That's why people like Isaacs and Zainie Misbach began collecting traditional recipes to preserve them.

[See below and check out the videos on this page for Misbach's recipe for koeksisters, a Cape Malay variation on donuts.]

Misbach opened a restaurant in Bo-Kaap that served dishes her aunts and uncles used to make.

Now she gives cooking lessons, often to foreigners, to spread the knowledge of a cuisine that's little known outside of the country.

Foreigners often enjoy a Cape Malay curry more than similar dishes in Asia, Misbach says, because of the adaptations that began in the days of slavery to make the flavors more appeal to the Dutch masters.

"The women had to cook for the Dutch," she says. "They had to find a way not to use chili but still use their spice. And this evolved into a curry that's palatable for the European tongue."

Malay cuisine is big on both sweet and savory treats. Courtesy Nigel Deary © Penguin Random House South Africa (Pty) Ltd 2016

Her secret substitute for chili? Paprika. It gives the curry a good color and flavor, without the chili's heat.

For Isaacs, every dish tells a story that traces its origin to the days of slavery and that speaks to the strength of the community.

"Our traditional dishes tell the story of the slaves, how they cooked, what they cooked and why they created traditions that brought the community together," she says.

"Our dishes showcase the vibrancy of spices and flavors that came from the East and if you trace all of this back to when it all started, you'll understand that this rich heritage left behind by our forefathers gives us a sense of belonging, the pride of knowing where you come from."

Zainie Misbach's recipe for Cape Malay-style koesisters

• Mix together four cups of plain or cake flour, three quarters of a cup of sugar, a pinch of salt, one tablespoon of baking powder, two sachets of dried yeast and a tablespoon each of powdered ginger, cardamom and cinnamon and two tablespoons of aniseed.

• Melt 100 grams of butter in two cups of hot water. Once it's dissolved, add a tablespoon of sunflower oil then leave until it's warm to the touch.

• Add two eggs to the flour mixture then stir in the melted butter and warm water.

• Stir with a slow movement until the dough starts to leave the sides of the bowl. Then leave to rest, still in the bowl, in a warm place until it nearly doubles in size.

• On a floured surface, stretch the dough out into a sausage and chop into segments. These can then be left to rise a little further.

• When they're ready, deep-fry each segment in medium-warm canola or sunflower oil until they're a deep brown color.

• Once they've cooled it's time to glaze them in syrup. Heat one cup of water mixed with one cup of sugar until the solution starts to fluff. Drop each koeksister in for one-two minutes.

• To make the coconut filling, add one cup of desiccated coconut and three-quarters of a cup of sugar to three-quarters of a cup of water. Heat until it turns into a gluey paste.