revan

1.1.1 • Public • Published

Revan

Revan is Node.js template enegine to fill gap between frontend & backend development.

Sponsored by: spottmedia.com

Markup

The string is between two tag indicators with one inside. The inside dac idicates where ending php and starting the frontend part.

{  ||  }

Example of code

<? echo 'the test value'; ?> || Some frontend text to replace php  }

Build in functions

Include function gives ability to include file content from external file. The file will be rendered ( depending of developemtn option value ) and insert as a html code inside file where it was included.

{ <? echo 'the test value'; ?>  || include partials/head.phtml  }

Installation

Revan requires Node.js v4+ to run.

Install the dependencies and devDependencies and start the server.

$ npm install revan -g

Examples of task "development" variable indicates the type of development false = frontend ( generation to html ), true = backend ( generation to php )

gulp.task('revan-front', function () {
    return gulp.src('src/revan/*.phtml')
        .pipe(revan( { development : false , path : 'src/revan/' }))
        .pipe(gulp.dest(outputPath));
});

Package Sidebar

Install

npm i revan

Weekly Downloads

6

Version

1.1.1

License

ISC

Last publish

Collaborators

  • wrcode