GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MulleWeb/MulleScionHTMLPreprocessor: 🥣 A Preprocessor for HTML that converts <objc> and other tags to MulleScion {% %}

BranchesTags
Open more actions menu

Latest commit

 

History

90 Commits
90 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.mulle
.mulle
 
 
asset/dox/api/toc
asset/dox/api/toc
 
 
cmake
cmake
 
 
cola
cola
 
 
src
src
 
 
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
MulleScionHTMLPreprocessor.sublime-project
MulleScionHTMLPreprocessor.sublime-project
 
 
README.md
README.md
 
 
RELEASENOTES.md
RELEASENOTES.md
 
 
clib.json
clib.json
 
 
overview.dot.svg
overview.dot.svg
 
 

Repository files navigation

MulleScionHTMLPreprocessor

🥣 A Preprocessor for HTML that converts <objc> and other tags to MulleScion {% %}

Write your MulleScion template code in HTML lookalike tags. Now reformat the HTML document and it doesn't destroy your template code (as much).

Check the Wiki for editor setup help.

Release Version Release Notes AI Documentation
Mulle kybernetiK tag Build Status RELEASENOTES DeepWiki for MulleScionHTMLPreprocessor

Usage

Preprocessor support is available starting with MulleScion version 1859.

MulleScionParser *parser;

...
[parser setPreprocessor:[MulleScionHTMLPreprocessor object]];

Example

 <html>
  <head>
    <objc>
       x = @"Hello World";
    </objc>
  </head>
  <body>
    <if x>
       <h1></h1>
    <else/>
       <h1>I have nothing to say</h1>
    </if>
  </body>
</html>

Documentation & Guides

  • API Summary

Info

Hide the uglies in HTML preview

Unknown tags shouldn't get rendered by the browser. Therefore there is nothing to do for most tags. The text between <objc> and </objc> can be hidden with CSS:

<style type="text/css">
 objc { display: none; white-space: pre; }
</style>

Tags

Tag pairs enclose template content. The tag-pairs are translated to MulleScion handlebars. There is no syntax check done on the text following the tag identifier.

Tag Opener Closer Translates to
<block> </block> {% block %} {% endblock %}
<else/> {% else %}
<if expr> </if> {% if expr %} {% endif %}
<for var in expr> </for> {% for var in expr %} {% endfor %}
<objc> <objc> {% %}
<while expr> </while> {% while expr %} {% endwhile %}

objc is useful to add Objective-C code in the <head> section of the HTML document, but it can be placed anywhere. The other tags are more useful in the <body> section.

Notes

  • <block> is experimental, it might get removed
  • <else/> has no closer.

You are here

Overview

Add

Use mulle-sde to add MulleScionHTMLPreprocessor to your project:

mulle-sde add github:MulleWeb/MulleScionHTMLPreprocessor

Install

Install with mulle-sde

Use mulle-sde to build and install MulleScionHTMLPreprocessor and all dependencies:

mulle-sde install --prefix /usr/local \
   https://github.com//MulleScionHTMLPreprocessor/archive/latest.tar.gz

Manual Installation

Install the requirements:

Requirements Description
MulleFoundationBase 🧱 MulleFoundationBase amalgamates Foundations projects
mulle-objc-tools 📒 Lists mulle-objc runtime information contained in executables.

Download the latest tar or zip archive and unpack it.

Install MulleScionHTMLPreprocessor into /usr/local with cmake:

PREFIX_DIR="/usr/local"
cmake -B build                               \
      -DMULLE_SDK_PATH="${PREFIX_DIR}"       \
      -DCMAKE_INSTALL_PREFIX="${PREFIX_DIR}" \
      -DCMAKE_PREFIX_PATH="${PREFIX_DIR}"    \
       -DCMAKE_BUILD_TYPE=Release &&
cmake --build build --config Release &&
cmake --install build --config Release

Platforms and Compilers

All platforms and compilers supported by mulle-c11.

Author

Nat! for Mulle kybernetiK

About

🥣 A Preprocessor for HTML that converts <objc> and other tags to MulleScion {% %}

mulle-objc.github.io

Topics

html-documentmulle-scionpreprocessor

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.