Skip to content

Commit

Permalink
Add code block interpolation trick (#2)
Browse files Browse the repository at this point in the history
* Add screenshots

* Make readme lowercase

* Add Interpolation in Code Blocks trick

* Add code example for interpolation trick

* Add CodeSandbox screenshot
  • Loading branch information
karlhorky authored Dec 9, 2024
1 parent 09ab60c commit ee1765f
Show file tree
Hide file tree
Showing 77 changed files with 10,881 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Binary file not shown.
Binary file added interpolation-in-code-blocks-codeblock.avif
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions interpolation-in-code-blocks/.next/app-build-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pages": {
"/layout": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/layout.js"
],
"/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/page.js"
]
}
}
20 changes: 20 additions & 0 deletions interpolation-in-code-blocks/.next/build-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"polyfillFiles": [
"static/chunks/polyfills.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/development/_buildManifest.js",
"static/development/_ssgManifest.js"
],
"rootMainFiles": [
"static/chunks/webpack.js",
"static/chunks/main-app.js"
],
"rootMainFilesTree": {},
"pages": {
"/_app": []
},
"ampFirstPages": []
}
1 change: 1 addition & 0 deletions interpolation-in-code-blocks/.next/cache/.rscinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"encryption.key":"0nRembzes/bUn6yWcUN+rAzGEN02oCWqIaaczGO0QdM=","encryption.expire_at":1734963226446}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions interpolation-in-code-blocks/.next/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "commonjs"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"/page": "app/page.js",
"/favicon.ico/route": "app/favicon.ico/route.js"
}
86 changes: 86 additions & 0 deletions interpolation-in-code-blocks/.next/server/app/favicon.ico/route.js

Large diffs are not rendered by default.

219 changes: 219 additions & 0 deletions interpolation-in-code-blocks/.next/server/app/page.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
self.__INTERCEPTION_ROUTE_REWRITE_MANIFEST="[]"
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
self.__BUILD_MANIFEST = {
"polyfillFiles": [
"static/chunks/polyfills.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [],
"rootMainFiles": [
"static/chunks/webpack.js",
"static/chunks/main-app.js"
],
"rootMainFilesTree": {},
"pages": {
"/_app": []
},
"ampFirstPages": []
};
self.__BUILD_MANIFEST.lowPriorityFiles = [
"/static/" + process.env.__NEXT_BUILD_ID + "/_buildManifest.js",
,"/static/" + process.env.__NEXT_BUILD_ID + "/_ssgManifest.js",

];
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": 3,
"middleware": {},
"functions": {},
"sortedMiddleware": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
self.__REACT_LOADABLE_MANIFEST="{}"

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pages":{},"app":{},"appUsingSizeAdjust":false,"pagesUsingSizeAdjust":false}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"node": {},
"edge": {},
"encryptionKey": "0nRembzes/bUn6yWcUN+rAzGEN02oCWqIaaczGO0QdM="
}
Loading

0 comments on commit ee1765f

Please sign in to comment.