Inside Paulo Abrantes' head
[ start | index | login or register ]
start > 2007-03-06 > 1

SnipSnap Developing: Fresh Macros

Created by pabrantes. Last edited by pabrantes, one year and 163 days ago. Viewed 1,098 times. #6
[diff] [history] [edit] [rdf]
labels
attachments
TagometerMacro.jar (2564)
YoutubeMacro.jar (2460)

SnipSnap Developing: Fresh Macros

Most of the blogs - specially the widely adopted wordpress - are filled with macros that support nowadays common services, like del.icio.us, youtube, wikipedia, digg, etc.

I felt that snipsnap also deserved such macros, I felt that my blog deserved such macros. So I'm currently releasing two macros:

Youtube Macro

There's not much to say about the youtube macro, mostly it takes the ID of a youtube video and renderers the embedded object. To know how to get the ID let's examine an youtube URL. Here's how they look like:

>>http://www.youtube.com/watch?v=ID

So for example, if I wanted to show the Super Monk video - with the URL: >>http://www.youtube.com/watch?v=_U4oO76ml28. I would type the following command:

{youtube:id=_U4oO76ml28}

Result:

Tagometer

Examples of tagometer can already be seen in the Domain Driven Design posts, such as >>Software Developing: Domain Driven Design looking at Persistence.

There are also two ways of displaying tagometer, inline or block, that can be said to the macro via the parameter inline, which can be true or false (defaults to false).

So here is an example of tagometer:

{tagometer}

Result:

Any suggestions about these macros or new ideas for others are always welcomed.

4 comments (by pabrantes, AdaHsu) | post comment
Who am I?
paulo-roca2My name is Paulo Abrantes AKA pabrantes and I'm a software developer. I'm currently employed at >>CIIST working as a Java developer in >>FenixEDU.

This blog is mostly about Java programming, domain driven design and snipsnap bliki developing. Everything written in this blog is my personal opinion and it may not reflect the opinions of my employer and co-workers.


Blog subscription
subscribe by rss subscribe by email

Links
>> Home
>> Paulo's Profile
>> Post History
>> Add to Technorati Favorites
>> Paulo's Photo Gallery
>> WishList
>> Posting without Login

Search Blog
Fellow Bloggers

Recent Posts

Java Programming: Bytecode Injection
Intermission: Sorry For Downtime
Software Developing: Studying The Bliki Domain Model
SnipSnap Developing: Trying to settle a roadmap
System Administration: Load Balancing with Apache
Blogging: Two years have passed
Software Developing: The SnipSnap Saga
Java Programming: Getting your code spicy with Groovy
Software Developing: Fluent Interfaces
Software Developing: Implementing a ShoutBox on SnipsSnip
Software Developing: SnipSnap, SnipIt and SnipSnip
Java Programming: Proxies and Access Control
Java Programming: Proxies and References
Java Programming: References' Package
YALM: Yet Another Layout Modification

For older posts, please refer to post-history for a complete Post History

Logged in Users: (0)
… and 5 Guests.
This is a modified version of snipsnap.org created by >>Paulo Abrantes