diff --git a/README.md b/README.template.md similarity index 94% rename from README.md rename to README.template.md index ebd47d6..fc90c72 100644 --- a/README.md +++ b/README.template.md @@ -12,7 +12,7 @@ import { textResponse, jsonResponse, streamResponse, -} from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.1/reno/mod.ts"; +} from "https://raw.githubusercontent.com/jamesseanwright/reno/{{version}}/reno/mod.ts"; export const routes = createRouteMap([ ["/home", () => textResponse("Hello world!")], @@ -52,7 +52,7 @@ const router = createRouter(routes); This, along with request handlers being [pure functions](https://en.wikipedia.org/wiki/Pure_function), makes unit testing Reno services a breeze: ```ts -import { jsonResponse, assertResponsesMatch } from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.1/reno/mod.ts"; +import { jsonResponse, assertResponsesMatch } from "https://raw.githubusercontent.com/jamesseanwright/reno/{{version}}/reno/mod.ts"; import { createRonSwansonQuoteHandler } from './routes.ts'; const createFetchStub = (response: string[]) => @@ -85,7 +85,7 @@ test({ Deno emulates the middleware pattern, [found in Express](https://expressjs.com/en/guide/using-middleware.html), favouring [function piping](https://www.sitepoint.com/function-composition-in-javascript/#theimportanceofinvocationorder) to create reusable, higher-order route handlers: ```ts -import { createRouteMap, jsonResponse, pipe } from "https://raw.githubusercontent.com/jamesseanwright/reno/v0.6.1/reno/mod.ts"; +import { createRouteMap, jsonResponse, pipe } from "https://raw.githubusercontent.com/jamesseanwright/reno/{{version}}/reno/mod.ts"; const withCaching = pipe( (req, res) => {