Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

comps-real-addons

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comps-real-addons

Real's template render syntax in comps.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

comps-real-addons

Template rendering syntax sugar for Real using Comps

Noti: Requires version of Real since 1.5.0

Usage

Install:

npm install comps-real-addons --save

Set custom tag:

var comps = require('comps')
var compsRealAddons = require('comps-real-addons')

compsRealAddons(comps)

Syntax

  • {%= $expression /%}

    Will be compiled to real's r-text directive:

    <span r-text>{$expression}</span>
    
  • {%if= $expression /%}

    Will be compiled to real's r-text directive with r-if:

    <span r-if="{$expression}" r-text>{$expression}</span>
    
  • {%- $expression /%}

    Will be compiled to real's r-html directive:

    <span r-html>{$expression}</span>
    

FAQs

Package last updated on 13 Nov 2017

Did you know?

Socket

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.

Install

Related posts