kaushalmodi / strfmt

A string formatting module for Nim, inspired by Python's .format

Home Page:https://kaushalmodi.github.io/strfmt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork

This repo is a fork of the original strfmt repo by lyro (Frank Fischer) at https://bitbucket.org/lyro/strfmt/.

I do not claim any authorship of this awesome project. I forked it because I am more comfortable with git than mercurial (which is used for the original repo), and I wanted to make this project work once again on Nim devel (2018-06-28).


Introduction

strfmt is a small string formatting library for the Nim programming language similar to Python’s =format=.

Installation

Original

To install the original strfmt, do:

nimble install strfmt

This fork

To install this forked version, do:

nimble install https://github.com/kaushalmodi/strfmt

Documentation

The module is described in this reference documentation.

The documentation is written in Org mode.

  • Pandoc is then used to convert Org to ReStructuredText.
  • nim doc is then used to generate the final HTML documentation that includes the documentation converted from Org and the doc-strings in strfmt.nim.

To generate this documentation locally, do nimble docs. You will find an index.html generated in the docs/ directory.

nimble docs Requirements

  • Pandoc 2.6

Development

To run the tests, clone this repo, cd to the repo directory and run:

nimble test

About

A string formatting module for Nim, inspired by Python's .format

https://kaushalmodi.github.io/strfmt/


Languages

Language:Nim 100.0%