
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
The cleanest JavaScript template you'll ever need.
const compile = require('atjst');
const render = compile('Hello @name!');
const output = render({ name: 'John' });
console.log(output); // => Hello John!
Subtitution:
Hello @name!
Obviously cleaner than <%= name %>, {{ name }} or <name>, isn't it?
Expression:
Hello @{ firstName + ' ' + lastName }!
Highly inspired by JavaScript template literal.
The curly brackets inside might be nested but they must be balanced.
However, it also recognizes JavaScript string, comment and regular expression literals.
Thus writing @{ '}' } or @{ /}/ } is perfectly fine.
Code:
@ for (let { name } of persons) {
Hello @name!
@ }
At, space, then your code.
Comment:
@. This will be ignored.
Escape:
@@Override
Just in case.
module.exports = (template: string) => (data: any) => string;
npm install atjst
npm run build
FAQs
The *cleanest* JavaScript template you'll ever need.
We found that atjst demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.