Code Monkey home page Code Monkey logo

blogit's People

Contributors

dshaw avatar sean17 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sean17 the-cc-dev

blogit's Issues

No such file or directory './templates'

Started off with:

git clone https://github.com/dshaw/blogit.git
cd blogit
npm install
node blog.js

Returns the following:

fs.js:400
  return binding.readdir(pathModule._makeLong(path));
                 ^
Error: ENOENT, no such file or directory './templates'
    at Object.readdirSync (fs.js:400:18)
    at loadFolder_ (/home/jacques/blogit/node_modules/templar/templar.js:154:6)
    at Function.loadFolder (/home/jacques/blogit/node_modules/templar/templar.js:144:3)
    at blog (/home/jacques/blogit/blog.js:28:13)
    at Object.<anonymous> (/home/jacques/blogit/blog.js:18:5)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)

Noob here, so not really sure what to make of this...

Is it possible to split the blogs into multiple pages ?

This is one of the simplistic blog module for node.js. I have a blog up an running in less than 30 minutes. But one issues which is bothering me is the long list of blog's in one page.

Is it possible to split it into multiple pages. A configuration where user specifies that he need 4 blogs per page and the engine shows 4 blogs per page and takes the rest to subsequent pages.

Use template-literal instead of EJS

Template Literal is fastest, smallest and simplest template engine, because it use JS's literal template feature.

It's 55 times faster than EJS, and it also use less CPU and RAM ressources, so it may be a good idea to use it instead of EJS ๐Ÿ˜€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.