Is there a way for me to display regular HTML files using Iron Router? I've been trying, but it keeps showing me a different template instead of the one I'm trying to attach with Iron Router.
This is the layout I am working with:
<template name="mainLayout">
{{> yield region="navBar"}}
{{> yield}}
{{> yield region="footer"}}
</template>
Here's how my router.js file is set up:
Router.route('/',{
name: 'root',
controller: 'MainPageController'
});
Router.route("/:_id",{
name: 'signlePost',
controller: 'singlePostController'
});
Router.route("/about", function(){
this.render("aboutUs")
});
Below is the template I want to render:
<template name="aboutUs">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</template>
However, instead of displaying the aboutUs page, it keeps rendering the singlePost template on the aboutUs page. Can someone please assist me with this issue?