Natural Preference for Minification
    Have ideas to improve npm?Join in the discussion! »

    acutis-lang

    0.13.0 • Public • Published

    Acutis icon.

    Acutis language

    Acutis is a template language for building documents. It features strong typing, pattern matching, template components, and asynchronous templates. It can run in a browser or in Node.

    Acutis is a small, personal project and is not stable yet. Use Acutis if you want to experiment with a different kind of template language.

    <h1> Blog posts for {{ siteTitle }} </h1>
    {% map blogPosts with {image, title, date, excerpt, author: {name}} %}
      <article>
        <header>
          {% match image
             with null %}
            {* no image *}
          {% with {src, alt} %}
            <img src="{{ src }}" alt="{{ alt }}" />
          {% /match %}
          <h2> {{ title }} </h2>
          <span class="byline"> By {{ name ? "Anonymous" }} </span>
          {% DateTime date format="MMMM Do, YYYY" / %}
        </header>
        <p> {{ excerpt }} </p>
      </article>
    {% /map %}
    

    Getting started

    npm install acutis-lang

    You can use the Acutis API to add it to your build system.

    Read the docs.

    Changelog.

    Development

    Read the development docs.

    Compile the source in watch mode:

    yarn start

    Run the tests:

    yarn test

    License

    Copyright 2021 John Jackson
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    

    Install

    npm i acutis-lang

    DownloadsWeekly Downloads

    14

    Version

    0.13.0

    License

    Apache-2.0

    Unpacked Size

    270 kB

    Total Files

    48

    Last publish

    Collaborators

    • avatar