{"_id":"semi-static","_rev":"27-52878a19f4fd1eb0f370d9e8bf623b61","name":"semi-static","description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dist-tags":{"latest":"1.2.1"},"versions":{"0.0.1":{"name":"semi-static","version":"0.0.1","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{"underscore":""},"devDependencies":{"express":"","jade":""},"repository":{"type":"git","url":"https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","scripts":{"start":"node server.js"},"_id":"semi-static@0.0.1","dist":{"shasum":"c061c6979352db242c0c475ea4d2f22a0d79cf66","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-0.0.1.tgz","integrity":"sha512-MwJCHdyKkwIfN9cKuyTF6QapRl6mzSqTjC2SRLPwmtS+7cd1awQZpHauEP/3x991FJw5S+2BSS49iF3FeJg/Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMd2XT8jqpJFiCorkq/WPeresmTdRpSKRM2Lycu4QedwIhAKt2beL1lervHxzdg1chP335PNocV2nMf0KxHluFVI+I"}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}]},"0.0.2":{"name":"semi-static","version":"0.0.2","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{"underscore":""},"devDependencies":{"express":"","jade":""},"repository":{"type":"git","url":"https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","scripts":{"start":"node server.js"},"_id":"semi-static@0.0.2","dist":{"shasum":"f4853d9e27cdf75104f3ca9bcb724d2629c85d93","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-0.0.2.tgz","integrity":"sha512-lWolnhcqDKpazUUteXV2jziB3gDjySLZJHVwzSZPkcg764rMF/hWDNO0au0Ge472iVb8v7D+S7irkGmh0+okQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVl9viXrTMPaqCAUfDxYLTwYHMGuP6KZ9h6F6D8e+LkAiATiWKMDN9BmNWbGhhWmaSeElL5vuedlJl9zIeThTpDxg=="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}]},"0.0.3":{"name":"semi-static","version":"0.0.3","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{"underscore":""},"devDependencies":{"express":"","jade":""},"repository":{"type":"git","url":"https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","scripts":{"start":"node server.js"},"_id":"semi-static@0.0.3","dist":{"shasum":"ae551f084a94ef5ca5bbd81ad573d56cdc6883f9","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-0.0.3.tgz","integrity":"sha512-d2fjnt93y2fKyhd71QW1hTmDJRoGMnD+Wy53BgQsV2DFS4U0wwYEiPD8BJ9UFxN8tipLS3YLnHJptHg6l7gRVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUQlXSPW4IvlIAXjSclKAnPB4J0BkH9ksZJ2xkrYKJfAiBIVBYznAH+oQ34LuYqHLMEhzIKfo0+W5NP/9RUHJ4ARg=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}]},"0.0.4":{"name":"semi-static","version":"0.0.4","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{"underscore":""},"devDependencies":{"express":"","jade":""},"repository":{"type":"git","url":"https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","scripts":{"start":"node server.js"},"_id":"semi-static@0.0.4","dist":{"shasum":"98fe77373f9ec3d5b9976345c8977a955996a553","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-0.0.4.tgz","integrity":"sha512-oaZGaGBheWE6g4LZ1VCDNGnp3x7CFkn1EUH1JCu6gFuBA1nEmr8bY+Gjx/R4ydRNMggs5BtZJ9k74TdoFxKbkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDj7k8fzBTltRyXVd5zNJ/z/Hx47t0P076F4APYXcIsXAiEAs7lF43nYE0c33/1rSTTBzY64CVA67ohy0kRBSX8jVRg="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}]},"0.0.5":{"name":"semi-static","version":"0.0.5","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{"underscore":"1.5.2"},"devDependencies":{"express":"","jade":""},"repository":{"type":"git","url":"https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","_id":"semi-static@0.0.5","dist":{"shasum":"87319661ed902b117dea2893f93ee3c57a9578dd","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-0.0.5.tgz","integrity":"sha512-b+XrekupFFjMsl9ZAWL56yZvmrdBiE/eEQb1N7cMFRIwjQ8dQkgu6QXygH5HihpRWruYSKsMZj9HQmrl/16AwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSVyKavll+kXr4zK7s4BlDK6rc+EN0YUS1Cjt9MH5Z0gIhANar4jicHASJyo0izmtjz1vzWj1kQsuP92+ipXgib+pD"}]},"_npmVersion":"1.1.62","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"}]},"1.0.0":{"name":"semi-static","version":"1.0.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{"underscore":"1.5.2"},"devDependencies":{"express":"","jade":""},"repository":{"type":"git","url":"https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","gitHead":"44dd28779c5513f709d3c20652e3dcc1059d697a","bugs":{"url":"https://github.com/HenrikJoreteg/semi-static/issues"},"homepage":"https://github.com/HenrikJoreteg/semi-static","_id":"semi-static@1.0.0","scripts":{},"_shasum":"71e7954c27a3f96d7490ad21ab0b05a3b7d6eec7","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"pancia","email":"anthony.dayzerostudio@gmail.com"},"dist":{"shasum":"71e7954c27a3f96d7490ad21ab0b05a3b7d6eec7","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-1.0.0.tgz","integrity":"sha512-UDkIDaCZE3okxqoGIOcUeGUqwy3HF3ad5SnJvzLjpKFwB59zmWKaKhfds/054KvlfVJLoilFj13Z0RAoz/WPOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbFOrI/bY6vu9IWGEfEpZ6jcHT8iGJtW2ObNcWnV3I6AiBXC3v4AiEgxmilDcTWTeqwm4a53t+fXztFZbzPDsE8EA=="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"pancia","email":"anthony.dayzerostudio@gmail.com"}]},"1.1.0":{"name":"semi-static","version":"1.1.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{},"scripts":{"lint":"jshint ."},"devDependencies":{"express":"^4.13.3","jade":"^1.11.0","jshint":"^2.8.0"},"repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","gitHead":"a01516d3777257ffff2bf4c1f7822d9d04e398b7","bugs":{"url":"https://github.com/HenrikJoreteg/semi-static/issues"},"homepage":"https://github.com/HenrikJoreteg/semi-static#readme","_id":"semi-static@1.1.0","_shasum":"36691309f68c57cd3858e48f04e43e24062b5049","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"impinball","email":"isiahmeadows@gmail.com"},"dist":{"shasum":"36691309f68c57cd3858e48f04e43e24062b5049","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-1.1.0.tgz","integrity":"sha512-Cd247pjsqV4BBAKhvOpISjT21EmuJrvRECTdjOd4XEurejAoehmy5SpQlckIFbylVVt6rhu6y2kXbxxx4MJikA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAPrL/XKHNbX7xYDX7NGV0abvI/m1MBSe1GJJwiu9MOQIgCJ9Dret4+DdzsV5dxr1GDuPu9xUsBlZ2LG/ZBYjC4Dg="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@joreteg.com"},{"name":"impinball","email":"isiahmeadows@gmail.com"},{"name":"pancia","email":"anthony.dayzerostudio@gmail.com"},{"name":"wolfico","email":"charlie@wolf.is"}]},"1.1.1":{"name":"semi-static","version":"1.1.1","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{},"scripts":{"lint":"jshint ."},"devDependencies":{"express":"^4.13.3","jade":"^1.11.0","jshint":"^2.8.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","gitHead":"bb1526b7be202181db9692ff9069993db77f96eb","bugs":{"url":"https://github.com/HenrikJoreteg/semi-static/issues"},"homepage":"https://github.com/HenrikJoreteg/semi-static#readme","_id":"semi-static@1.1.1","_shasum":"adff47a92d7af280dba7035c0ff102dfb4054e9d","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"impinball","email":"isiahmeadows@gmail.com"},"dist":{"shasum":"adff47a92d7af280dba7035c0ff102dfb4054e9d","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-1.1.1.tgz","integrity":"sha512-Sz/3ibhMYKRuDJpdNyGFLUw9goN5wjzV05pSaLg1+027KNCi8xIrKtpEZZYpeD8BrLN2zLao0NGyA69RPIe9iQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSXpzPMu6/PRHPBqB4+w7EJuYr44GIt+cpobEhFkEgZAiBbSYyvaa++Q5zrX1ZwzbaAtHvnGsNcOjpnIM9OLP4jxQ=="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@joreteg.com"},{"name":"impinball","email":"isiahmeadows@gmail.com"},{"name":"pancia","email":"anthony.dayzerostudio@gmail.com"},{"name":"wolfico","email":"charlie@wolf.is"}]},"1.1.2":{"name":"semi-static","version":"1.1.2","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{},"scripts":{"lint":"jshint ."},"devDependencies":{"express":"^4.13.3","jade":"^1.11.0","jshint":"^2.8.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","gitHead":"696e8670206533b47ac406b3edfaef8659a1b289","bugs":{"url":"https://github.com/HenrikJoreteg/semi-static/issues"},"homepage":"https://github.com/HenrikJoreteg/semi-static#readme","_id":"semi-static@1.1.2","_shasum":"481261b1c7f594961717d4438336f07fe5fd178e","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.4.1","_npmUser":{"name":"isiahmeadows","email":"me@isiahmeadows.com"},"dist":{"shasum":"481261b1c7f594961717d4438336f07fe5fd178e","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-1.1.2.tgz","integrity":"sha512-ovU5CDRpMOVdLZzJaSRLrA9Jgv4XXOUM8BR0zAdenDBzf7euncaR0IsiA5OtWbZhoSl3h/60lvkohnSl/GHeQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVDtr1dPEGncCyBqVwuvdTC4Gz4b8oSGLinZW0fFt1sQIhAI/A9vHIMBgyhS0oX7wOGywB7z6LhNU7B+JyPlU+7w5z"}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@joreteg.com"},{"name":"isiahmeadows","email":"me@isiahmeadows.com"},{"name":"pancia","email":"anthony.dayzerostudio@gmail.com"},{"name":"wolfico","email":"charlie@wolf.is"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/semi-static-1.1.2.tgz_1458659930207_0.6520077225286514"}},"1.2.0":{"name":"semi-static","version":"1.2.0","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{},"scripts":{"lint":"jshint ."},"devDependencies":{"express":"^4.13.3","pug":"^1.11.0","jshint":"^2.8.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","gitHead":"3c92dfcda40c51085c88c4018d9b792cb0211bf3","bugs":{"url":"https://github.com/HenrikJoreteg/semi-static/issues"},"homepage":"https://github.com/HenrikJoreteg/semi-static#readme","_id":"semi-static@1.2.0","_shasum":"a02c986add05a3eaf5081ae3b6ee1255def6ef0c","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"isiahmeadows","email":"me@isiahmeadows.com"},"dist":{"shasum":"a02c986add05a3eaf5081ae3b6ee1255def6ef0c","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-1.2.0.tgz","integrity":"sha512-SleasWXUiBcRxh+T5Ji4keYwSKjAvAZmeoziE79sFGizrd21AKaTVC4y3nTPkRDyEXuRdJRHkOOCuOWNhGU7rQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBVTq848FY+tDiloA5kjROEWJGau67Eoa1urquv+IBNHAiAJ6ZF0ykBALag4QF/mazA84iAd6Mli10TBbGBLYtIzpg=="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@joreteg.com"},{"name":"isiahmeadows","email":"me@isiahmeadows.com"},{"name":"pancia","email":"anthony.dayzerostudio@gmail.com"},{"name":"wolfico","email":"charlie@wolf.is"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/semi-static-1.2.0.tgz_1486815560765_0.927960112458095"}},"1.2.1":{"name":"semi-static","version":"1.2.1","author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"description":"Simple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick 'static' pages inside an othewise 'dynamic' app.","dependencies":{},"scripts":{"lint":"jshint ."},"devDependencies":{"express":"^4.13.3","jade":"^1.11.0","jshint":"^2.8.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/semi-static.git"},"keywords":["express","shortcuts"],"main":"semi-static.js","gitHead":"5d48c1993de9be72ac6c447fe22501dc8e20a93e","bugs":{"url":"https://github.com/HenrikJoreteg/semi-static/issues"},"homepage":"https://github.com/HenrikJoreteg/semi-static#readme","_id":"semi-static@1.2.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.4","_npmUser":{"name":"isiahmeadows","email":"me@isiahmeadows.com"},"dist":{"integrity":"sha512-X9PX9kILlFRxfcvL0QuNgqQPeUuFQP0eCJmmA4zo8JE3wj8AIxwGFvOPxeT6dFu+sV/LzEM7/czJeC9NCCPLYQ==","shasum":"9d25310cd21d6e3642d6b43cf2411137b8bf4f01","tarball":"https://registry.npmjs.org/semi-static/-/semi-static-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyof24YZBzE8I3+uIL2g1wWj+Jnhx7j+eSVFRDjXblOAiEAolNWVQFQDApRojtLHnHlJNwvXtkavevPmogxgWRy6sY="}]},"maintainers":[{"name":"henrikjoreteg","email":"henrik@joreteg.com"},{"name":"isiahmeadows","email":"me@isiahmeadows.com"},{"name":"pancia","email":"anthony.dayzerostudio@gmail.com"},{"name":"wolfico","email":"charlie@wolf.is"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/semi-static-1.2.1.tgz_1501495713542_0.9424446118064225"}}},"readme":"# semi-static\n\nSimple, lazy way to serve a directory of semi-static pages in express.js. Handy for building quick \"static\" pages inside an otherwise \"dynamic\" app.\n\nOften you have a dynamic web app that also needs a bunch of mostly \"static\" pages. But you still want to use the same app layouts and template system to build out those pages. Take for instance an FAQ page inside your app that otherwise has a bunch of dynamic content.\n\nIt's silly to build a specifc route for that page when all you really want is a route that at 'http://yourapp.com/faq' renders the `faq.pug` template in your [express.js](http://expressjs.com/) app.\n\nI find myself adding code like this to nearly every express app I write, so I figured why the heck not publish an npm module and re-use that. So, here we are.\n\n## Basic use\n\n1. Install with npm:\n    `npm install semi-static`\n\n2. Create a folder called `static` inside your express views folder.\n\n3. Register a handler that tells it to use semi-static to render and serve template names at urls as if they were static:\n    `app.get('*', semiStatic());`\n\n4. Profit!\n\n## Full Example\n\nYou can run the example in this repo by changing to the `example` directory and running `node server.js` and both http://localhost:3000/ and http://localhost:3000/help should render the correct templates.\n\nHere's basic sample code (see the example directory for a more elaborate example):\n\n```js\n// super simple demo\nvar express = require('express');\nvar semiStatic = require('semi-static');\n\n// init our app\napp = express();\n\n// use pug\napp.set('view engine', 'pug');\n\n// serve our static files\napp.use(express.static(__dirname + '/public'))\n\n// register our handler\napp.get('*', semiStatic());\n\n// we can still have a normal 404 at the end\n// because it will only do something if there's\n// a path that matches.\napp.all('*', function (req, res) {\n    res.send('not found', 404);\n});\n\napp.listen(3000);\nconsole.log('started');\n```\n\n## Options / How it works\n\nAll it needs is the folder where your \"static\" templates live and the file extension your templates use. If you just need to render Pug (the default extension), you can simply call `semiStatic(\"path/to/your/pug/templates\")`. For compatibility reasons, the default also falls back to accepting `.jade`, but you *should* change that extension ASAP.\n\nIf you need more customization, you can set the options as follows:\n\n```js\n// This is with the default options\napp.get(\"/hello*\", semiStatic({\n    // Path to your templates\n    folderPath: path.dirname(require.main.filename) + \"/views/static\",\n\n    // Extension for your templates.\n    fileExt: \"ejs\",\n\n    // URL root for your templates.\n    root: \"/\",\n\n    // Whether to pass the request as `req` to res.render()\n    passReq: false,\n\n    // A custom context to send to the file, either a value or a function that\n    // accepts two arguments: the request and a Node-style callback that takes\n    // an error and return value.\n    context: undefined\n}));\n```\n\nThat's it, easy-peasy.\n\n\nYou may also include an option called `context` that will be passed to the rendering engine. Context can either be an object that will be passed as variables or a function that takes the `req` from express and a callback (whose result will then be passed to the template). If you specify `passReq: true` the express request object will also be passed (useful to access req.params, req.query, etc from your template).\nSee the example code for more details.\n\n## Little sneaky static sites within your app (great for docs)\n\nIf you want to serve an `index` file you can do that too.\n\nSo if you do this:\n\n```js\napp.get(\"*\", semiStatic());\n```\n\nAnd put a file called `index.pug` inside `views/static` it will get served at `yoursite.com` as well as `yoursite.com/index`.\n\nThis is so you can basically have little mini static sites inside your app. For example, I like doing stuff like this for serving out a little semi-static help site within an app:\n\n```js\napp.get('/help/*', semiStatic({\n    folderPath: __dirname + '/help-site',\n    root: '/help'\n}));\n```\n\nAs long as you've got a folder with an `index.pug` file in it your help site will be available at `yoursite.com/help`\n\n## License\n\nMIT\n\nIf you think this is handy, follow [@HenrikJoreteg](https://twitter.com/henrikjoreteg) on the twitters. See you on the interwebz!\n","maintainers":[{"name":"henrikjoreteg","email":"henrik@joreteg.com"},{"name":"isiahmeadows","email":"me@isiahmeadows.com"},{"name":"pancia","email":"anthony.dayzerostudio@gmail.com"},{"name":"wolfico","email":"charlie@wolf.is"}],"time":{"modified":"2022-06-26T17:31:53.161Z","created":"2012-10-01T06:41:52.457Z","0.0.1":"2012-10-01T06:41:54.006Z","0.0.2":"2012-10-01T06:52:24.916Z","0.0.3":"2013-03-12T05:27:58.150Z","0.0.4":"2013-03-27T19:00:13.558Z","0.0.5":"2013-09-11T16:34:14.482Z","1.0.0":"2015-08-25T23:22:26.389Z","1.1.0":"2015-11-01T10:53:52.879Z","1.1.1":"2015-11-01T10:55:12.550Z","1.1.2":"2016-03-22T15:18:52.607Z","1.2.0":"2017-02-11T12:19:21.424Z","1.2.1":"2017-07-31T10:08:34.547Z"},"author":{"name":"Henrik Joreteg","email":"henrik@andyet.net"},"repository":{"type":"git","url":"git+https://github.com/HenrikJoreteg/semi-static.git"},"users":{"toddwprice":true,"rocket0191":true},"keywords":["express","shortcuts"],"readmeFilename":"README.md","homepage":"https://github.com/HenrikJoreteg/semi-static#readme","bugs":{"url":"https://github.com/HenrikJoreteg/semi-static/issues"},"license":"MIT"}