![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Flexible, powerful, asynchronous (and synchronous) templates for node.js and the browser.
nct is a javascript templating engine. it is:
{extends layout}
{block main}
<h1>{pageTitle}</h1>
{if loggedIn}
<h2>Hello {name}</h2>
{else}
<h2>Join Now</h2>
<ul>
{# benefits}
<li>{name}</li>
{/#}
</ul>
{/if}
{/block}
Or, with coffeescript precompiler:
$block 'main', ->
h1 '@pageTitle'
$if '@loggedIn', (->
h2 'Hello '+'@name'
), ->
h2 'Join Now'
ul ->
$each '@benefits', ->
li '@name'
Tags are indicated by single braces, for example {name}, and {if variable}.
Variable lookups are surrounded by single braces. The lookup will try to find the variable name in the current context. If it is not found, nothing will be rendered (it will fail silently).
A simple conditional, with optional else block. The tag must start with {if, and be closed with a matching {/if} tag.
The loop iterator, will iterate over the given context variable, repeating the block body.
Template:
{# people}
{name}, {country}
{/#}
Context:
{people: [{name: 'Joe', country: 'CA'}, {name: 'Jane', country: 'US'}]}
Result:
Joe, CA
Jane, US
One killer feature of nct templates is the ability to use valid coffeescript as a source for nct templates. By utilizing templates as code, otherwise verbose templates can be easily refactored and reused.
FAQs
Flexible, powerful, asynchronous (and synchronous) templates for node.js and the browser.
The npm package nct receives a total of 7 weekly downloads. As such, nct popularity was classified as not popular.
We found that nct 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.