use-init / init

INIT extends HTML5 Boilerplate, adds more structure for SCSS and JavaScripts files, includes build tasks and a whole lot more.
http://use-init.com/
MIT License
592 stars 69 forks source link

New template pages are not being created! #117

Closed mentorkadriu closed 10 years ago

mentorkadriu commented 10 years ago

Hi! I'm creating new template pages in the folder template then i run "grunt pages:dev" and "grunt pages:build" tasks but I only result in index.html and about.html . I added for example contact.html in the template folder but no result so far!

anselmh commented 10 years ago

Hi, have you referenced the page in https://github.com/use-init/init/blob/master/pages.json? If not, you need to do this, so INIT can stack the parts together and output it.

mentorkadriu commented 10 years ago

So, the process of build new pages should go like this, right?

  1. Add new page to the pages.json like this:
  "contact": {
    "src": [
      "templates/header.html",
      "templates/conatct.html",
      "templates/footer.html"
    ],
    "dest": "temp/contact.html"
  }
  1. Create a new file on the template folder contact.html and add your code.
  2. Run grunt pages:dev or grunt pages:build
drublic commented 10 years ago

True.

On Sun, Aug 17, 2014 at 12:19 PM, mentorkadriu notifications@github.com wrote:

So, the process of build new pages should go like this, right?

  1. Add new page to the pages.json like this:

    "contact": { "src": [ "templates/header.html", "templates/conatct.html", "templates/footer.html" ], "dest": "temp/contact.html" }

    1.

    Create a new file on the template folder contact.html and add your code. 2.

    Run grunt pages:dev or grunt pages:build

— Reply to this email directly or view it on GitHub https://github.com/use-init/init/issues/117#issuecomment-52418304.

Hans Christian Reinl Front-End Developer

Köln - Deutschland +49 176 44508482

drublic.de info@drublic.de

drublic commented 10 years ago

Please check the pages.json file and add the template there. Does this work for you?

We will improve the docs soon hopefully.

On Tuesday, August 12, 2014, mentorkadriu notifications@github.com wrote:

Hi! I'm creating new template pages in the folder template then i run "grunt pages:dev" and "grunt pages:build" tasks but I only result in index.html and about.html . I added for example contact.html in the template folder but no result so far!

— Reply to this email directly or view it on GitHub https://github.com/use-init/init/issues/117.

Hans Christian Reinl Front-End Developer

Köln - Deutschland +49 176 44508482

drublic.de info@drublic.de

mentorkadriu commented 10 years ago

Yeah, it works perfectly. All you need are better docs. :)

drublic commented 10 years ago

Thanks. We'll try to do that soon.