Skip to content

Commit 2894923

Browse files
committed
add TODO comment for future cleanup
1 parent 0907034 commit 2894923

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

middleware/context.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ module.exports = async function contextualize (req, res, next) {
5151
req.context.siteTree = siteTree
5252
req.context.pages = pageMap
5353

54+
// TODO we should create new data directories for these example files instead of using variable files
5455
if (productMap[req.context.currentProduct]) {
5556
req.context.productCodeExamples = req.context.site.data.variables[`${productMap[req.context.currentProduct].id}_code_examples`]
5657
req.context.productCommunityExamples = req.context.site.data.variables[`${productMap[req.context.currentProduct].id}_community_examples`]

0 commit comments

Comments
 (0)