onionhammer / Nim Templates
Licence: bsd-3-clause
A simple string templating library for Nim
Stars: ✭ 76
Programming Languages
nim
578 projects
Projects that are alternatives of or similar to Nim Templates
Phpstorm Laravel Live Templates
Laravel Live Templates for PhpStorm
Stars: ✭ 1,157 (+1422.37%)
Mutual labels: template
Uikit Computer Store Template
Computer store e-commerce template
Stars: ✭ 72 (-5.26%)
Mutual labels: template
Ml project template
Machine Learning Project Template - Ready to production
Stars: ✭ 75 (-1.32%)
Mutual labels: template
Tufte Latex
A Tufte-inspired LaTeX class for producing handouts, papers, and books
Stars: ✭ 1,161 (+1427.63%)
Mutual labels: template
Simple Mvp Retrofit Example
A simple example of a project using MVP architecture and Retrofit 2.0 library for Android for beginners.
Stars: ✭ 70 (-7.89%)
Mutual labels: template
Dotnet Template Onion
Onion Architecture with .NET 5/.NET Core and CQRS/Event Sourcing following a DDD approach
Stars: ✭ 70 (-7.89%)
Mutual labels: template
Mid
mid is a generic domain-specific language for generating code and documentation
Stars: ✭ 68 (-10.53%)
Mutual labels: template
Expo Three Demo
🍎👩🏫 Collection of Demos for THREE.js in Expo!
Stars: ✭ 76 (+0%)
Mutual labels: template
Profile Card
Tailwind CSS Starter Template - Profile Card (Single page website for your profile/links)
Stars: ✭ 69 (-9.21%)
Mutual labels: template
Staradmin Free Bootstrap Admin Template
A Free Responsive Admin Dashboard Template Built With Bootstrap 4. Elegant UI Theme for Your Web App!
Stars: ✭ 1,191 (+1467.11%)
Mutual labels: template
Readme Template
A Readme Template For Tomorrow's Opensource
Stars: ✭ 69 (-9.21%)
Mutual labels: template
Create Discord Bot
Create Discord bots using a simple widget-based framework.
Stars: ✭ 70 (-7.89%)
Mutual labels: template
Sing App
💥Free and open-source admin dashboard template built with Bootstrap 4.5 💥
Stars: ✭ 1,187 (+1461.84%)
Mutual labels: template
Guacamole Customize Loginscreen Extension
An Apache Guacamole extension to use as a template for customizing or branding the login page.
Stars: ✭ 69 (-9.21%)
Mutual labels: template
Wasm Template Rust
A wasm template for Rust to publish to gh-pages without npm-deploy
Stars: ✭ 76 (+0%)
Mutual labels: template
Eleventy Webpack
A barebone Eleventy and Webpack boilerplate 🎈
Stars: ✭ 68 (-10.53%)
Mutual labels: template
Seed Quickstart Webpack
Template for web apps with Seed (Rust framework), TailwindCSS and Webpack.
Stars: ✭ 73 (-3.95%)
Mutual labels: template
Template.js
A javascript template engine, simple, easy & extras, support webpack, rollup, parcel, browserify, fis and gulp
Stars: ✭ 1,201 (+1480.26%)
Mutual labels: template
Pytorch Project Template
Deep Learning project template for PyTorch (Distributed Learning is supported)
Stars: ✭ 76 (+0%)
Mutual labels: template
Bootstrap Xd
Bootstrap Design Template — Assets Library — for Adobe XD
Stars: ✭ 74 (-2.63%)
Mutual labels: template
nim-templates
A simple string templating library for Nim
Usage
Import the 'templates' library at the top of your nim module, and use the syntax:
import templates
proc testPage (name: string): string = tmpli html"""
<body>
<h1>Hello $name!</h1>
</body>
"""
echo testPage("Charlie")
Syntax
The templates syntax supports $for and $while loops, $if/$elif/$else, multi-line statements, $case statements, procedure calls, etc. Look at the tests.nim file for more examples.
Supported Syntaxes
Realistically any well-structured syntax can be used as a template, but the NimLime SublimeText plugin supports syntax highlighting for the following template types;
- HTML / XML
- CSS
- Javascript
- GLSL
- RST
- Markdown
These can be invoked as follows:
tmpli xml""" ... """
tmpli css""" ... """
# etc
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].