Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Simple Individual Line Preprocessor

Project description

silp
====

Simple Individual Line Preprocessor

Blog post about what is SILP and why I want to create it.

- http://blog.yjpark.org/blog/2014/04/12/silp-simple-individual-line-preprocessor/

Notes
=====
following the best practice from this article:
- http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/

Language list for better .md rendering
- https://github.com/github/linguist/blob/master/lib/linguist/languages.yml

0.3.11
------
Bugfix with nested rules' param values

0.3.10
------
Support nested rules inside template.

0.3.9
-----
Bugfix with term refactoring

0.3.8
-----
Bugfix load module from ~/.silp_plugins
Add csproj file

0.3.7
-----
Try load module from ~/.silp_plugins

0.3.6
-----
Remove blessings usage under windows, can work under windows now (only test with git windows' bash)


0.3.5
-----
Put the `.silp_backup` and `.silp_test` folders under `~`, otherwise they may became garbage in project folder

0.3.4
-----
Make sure there is at least one space before the suffix
use " --SILP:" for sql

0.3.3
-----
Add SQL to language list

- Use "/*__SILP__*/" for the generated tag, since in MySql if using
"--__SILP__", then if there is one line without space there is a
corner case that there is no space before it.
https://dev.mysql.com/doc/refman/5.1/en/ansi-diff-comments.html

0.3.2
-----
Use "%" instead of "%%" in erlang language

0.3.1
-----
Add simple plugin support for more complex macro.

- Currently plugins should be put under project's silp_plugins
(Project means the folder holding silp_xx.md)
- plugin macro has format as module:func(param1, param2, ...)
module here is the name of the python plugin, func is the name of
function
- also expose silp.error/info/verbose, then the plugin codes can print
debug information with them.

Add support for Erlang (both erl, and hrl)

0.2.5
-----
Add support for YML launguage

0.2.4
-----
Fix the wrong `import silp` in setup.py which breaks the dependencies installation.

- https://github.com/yjpark/silp/issues/1
- Thanks for lowks for the comment: https://github.com/lowks

0.2.3
-----

### --clean
Add `--clean` parameter to remove silp generated lines, usefel if want
to change the language settings

### include other files in template
The syntax is something like:
```
<<[fish/fish.freshrc]
```
This is following the Marked (a markdown preview app on OS X) rule, so Marked
can show the included file content just fine.

### freshrc support
freshshell is a very nice tool to manage dotfiles, though it doesn't support
include other freshrc at the moment(2014-05-06), so I split my freshrc into
smaller files, and use silp to put them into the main file.
- https://github.com/freshshell/fresh

0.2.2
-----
- Bugfix with the .md files not included in Manifest

0.2.1
-----
- Change name to "Simple Individual Line Preprocessor"

0.2.0
-----
- Better control with the padding spaces to keep all `generated_surfix` aligned
- Skipping files that not using SILP, to prevent the useless files in `.silp_backup`
and `.silp_test` folders
- Can support multiple project setting files with different extentions
- If a subfolder has it's own setting files, won't include them in the parant's `--all` run

0.1.0
-----
First version, can do basic processing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for silp, version 0.3.11
Filename, size File type Python version Upload date Hashes
Filename, size silp-0.3.11.tar.gz (9.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page