Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Jemplate in kernel.js #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
49 changes: 49 additions & 0 deletions ReadMe.md
Expand Up @@ -215,6 +215,55 @@ Jemplate development is being discussed at irc://irc.freenode.net/#jemplate

If you want a committer bit, just ask ingy on the irc channel.

# DEVELOPMENT TOOLS

Here are the tools you will need to build the repo:

* java
* rhino (javascript interpreter written in java)
* On a Mac: `brew install rhino`
* yapp (Parse::Yapp - Perl extension for generating and using LALR parsers.)
* `cpanm Parse::Yapp`
* dzil (Dist::Zilla is a program to make it easier to write, package, manage, and release free software.)
* `cpanm Dist::Zilla`
* Test::Base (Test::Base - A Data Driven Testing Framework)
* `cpanm Test::Base`
* Zilla::Dist (Zilla::Dist - Dist::Zilla Mixed Up)
* `cpanm Zilla::Dist`

# BUILDING

Clone jemplate repo:

git clone git@github.com:buzzfeed/jemplate.git

Clone Test::Base repo:

git clone https://github.com/ingydotnet/test-base-pm.git

Change working directory to jemplate:

cd jemplate

Install any missing author dependencies:

dzil authordeps --missing | cpanm

Install any missing dependencies:

dzil listdeps --missing | cpanm

At this point you can make changes in the repo.

If you make any changes under `src` you should then run make to re-generate the javascript and perl code:

cd src
make

Then commit your changes and use dzil at the top level to build the package:

dzil build

# CREDIT

This module is only possible because of Andy Wardley's mighty Template
Expand Down
4 changes: 4 additions & 0 deletions src/js/kernel.js
Expand Up @@ -29,6 +29,10 @@ Jemplate.process = function() {
return jemplate.process.apply(jemplate, arguments);
}

if (typeof(exports) == "object") {
exports.Jemplate = Jemplate;
}

;(function(){

if (! Jemplate.templateMap)
Expand Down