|
|
|
|
| Advertise on this site |
Have you ever seen such syntax in JavaScript:
If you worked with great library Prototype.js surely yes. Such functionality implemented in class Template, which has just one method - evaluate. It does replacement in string template using input data object.
Now comes the tasty thing. How do you thing is it possible in C# 3.0? Of course yes! Let’s write the test (I expect you’ve heard about TDD):
Now we should implement Template class. Use a little bit reflection and we got prototype.js Template on C# 3.0.
Be happy of using it :)
In russian
These do work.
Here is the
Amazing ,how can he do that!
I like this post. It help me
pretty! I wish you can keep
Thanks for sharing the post!
I can use it in
That's very nice plugin! I
These tips help me a lot!
Thanks for sharing the post!
Very good plugin! I like it!
Comments