Skip to content

Depreciating dot based template paths

Compare
Choose a tag to compare
@thetutlage thetutlage released this 08 May 18:26

Before this release

Earlier one was able to use dot (.) as a separator to define nested template paths. For example:

// file path: posts/index.edge
view.render('posts.index') 

However, allowing dot as a separator can cause unnecessary problems, when the actual filename has a dot inside it. For example:

├── partials
│   └── header.small.edge

Now, rendering the view using partials.header.small will break, since the dot is used a path separator.

After this release

Now, the standard / is used for referencing nested paths.

view.render('posts/index')
  • refactor: depreciate dot based template paths 7bd3640

v3.0.3...v3.0.4