1.1.1 • Published 7 years ago

revan v1.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

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));
});
1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago