Preprocessor that uses ruby
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.gitignore
README.markdown
rubypp.gemspec

README.markdown

Rubypp is a preprocessor that uses ruby to transform text. Syntax is similar to the C preprocessor, e.g.:

#include <stdio.h>

#ruby <<END
  a = 42
  nil # the last value of the block gets inserted into the output stream
END

int main()
{
  printf("The answer is: #{a}\n");
}