custom-tags

Django : error with custom inclusion_tag, can't find file

I'm trying to write a custom inclusion_tag in django. Following the example on http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ I'm just writing @register.inclusion_tag('test.html') where test.html is a file in the same directory ( apps/my_app/templatetags) as the .py file which defines it. But I'm getting a Templa...

Is there a way to define 'javadoc types' - custom parameters for members?

The use case I can think of is the following: In a typical application, there are usually many members of a certain category, e.g., a web application contains many constants attribute keys, Action classes, services, etc. For each category, to maintain consistency, it is useful to document them consistently. Consider the constants used ...

Loading an hpricot element with a chunk of html

is there a way to load a chunk of html into an Hpricot::Doc object? I am trying to parse various chunks of html within custom tags from a page. so if I have: <foo> <b>here is some stuff</b> <table> <tr> <td>one</td> <td>two</td> </tr> <tr> <td>three</td> <td><four</td> </tr> </table> </foo...

Why doesn't the jQuery .html() method work with custom tags in IE8?

I have the following html code: <mytag> Just Some Text </mytag> And I have this jQuery command $('mytag').each(function () { alert($(this).html()); }); In all browsers except IE I'm getting the inner HTML, in IE I'm not. Anyone can shed any light on this mystery? I've tested this with IE8, Mozilla, Opera, Chrome and Safari ...

Cannot find CFML template for custom tag

Hi folks, I am not a ColdFusion coder. Doing a favor for a friend who ported his CF site from a Windows server to Unix on GoDaddy. Site is displaying error: Cannot find CFML template for custom tag jstk. ColdFusion attempted looking in the tree of installed custom tags but did not find a custom tag with this name. The site as ...

Cannot access implict object from within method in custom JSP tag file

I'm attempting to create a custom jsp tag. Everything is working fine, except for the fact that I the request seems to be out-of-scope for my custom function. Here is the relevant bit from the .tag file: <%! private String process(String age, BigDecimal amount) { //Attempting to access request here results in an compile time ...

PHP - templating with custom tags - is this a legit use of eval?

Overview Around the end of 2009, I wrote a simple templating system for PHP/HTML to be used in-house by our designers for brochure-ware type websites. The goal of the system is to allow templating in otherwise pure HTML via custom tags that are processed by PHP. For example, a templated page might look like this: <tt:Page template="tem...