Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

enterprise-server-releases.js 567 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. const { liquid } = require('../lib/render-content')
  2. const layouts = require('../lib/layouts')
  3. const getMiniTocItems = require('../lib/get-mini-toc-items')
  4. module.exports = async function enterpriseServerReleases (req, res, next) {
  5. if (!req.path.endsWith('/enterprise-server-releases')) return next()
  6. const html = await liquid.parseAndRender(layouts['enterprise-server-releases'], req.context)
  7. req.context.miniTocItems = getMiniTocItems(html, 3, 'article')
  8. return res.send(await liquid.parseAndRender(layouts['enterprise-server-releases'], req.context))
  9. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...