Skip to main content

Simple Individual Line Preprocessor

Project description


Simple Individual Line Preprocessor

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


following the best practice from this article:

Language list for better .md rendering

Bugfix with nested rules' param values

Support nested rules inside template.

Bugfix with term refactoring

Bugfix load module from ~/.silp_plugins
Add csproj file

Try load module from ~/.silp_plugins

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

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

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

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.

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

Add simple plugin support for more complex macro.

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

Add support for Erlang (both erl, and hrl)

Add support for YML launguage

Fix the wrong `import silp` in which breaks the dependencies installation.

- Thanks for lowks for the comment:


### --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:
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.

- Bugfix with the .md files not included in Manifest

- Change name to "Simple Individual Line Preprocessor"

- 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

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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page