Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tmod-loader

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmod-loader

artTemplate loader module for webpack

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

tmod-loader

tmodjs 改造的 artTemplate loader,用于webpack 。

webpack 配置

{
  ...
  module: {
    loaders: [
      {
          test: /\.tpl$/,
          loader: "tmod",
          query: {
              // 编译输出目录设置
              output: "./build",

              // 设置输出的运行时路径
              runtime: "src/template.js",

              // 定义模板采用哪种语法,内置可选:
              // simple: 默认语法,易于读写。可参看语法文档
              // native: 功能丰富,灵活多变。语法类似微型模板引擎 tmpl
              syntax: "simple",

              // 模板文件后缀
              suffix: '.tpl'
          } 
      }
    ]
  }
}

模板

模板语法参考artTemplate

Keywords

FAQs

Package last updated on 28 Dec 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc