Skip to content

v4.2.0

Latest
Compare
Choose a tag to compare
@LebCit LebCit released this 17 Feb 14:59

Feature Enhancements:

  • Add support for custom template directory configuration
  • Allow specifying separate directories for static files and views
  • Maintain backward compatibility with default "views" directory
  • Update TypeScript definitions to support new constructor parameters
  • Pass custom views directory through the template rendering chain

Example Usage:

// Default directories
const app = new LiteNode()  // uses ("static", "views")

// Only static directory specified
const app2 = new LiteNode("public")  // uses ("public", "views")

// Both directories specified
const app3 = new LiteNode("public", "templates")  // uses ("public", "templates")

// Default static, custom views
const app4 = new LiteNode("static", "pages")  // uses ("static", "pages")