This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 113130

Summary: add HAML support to views instead of rhml
Product: ruby Reporter: marcin_raczkowski <marcin_raczkowski>
Component: RHTMLAssignee: Torbjorn Norbye <tor>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description marcin_raczkowski 2007-08-17 19:58:53 UTC
I would like to add haml support for views, could you point me in right direction ?
should i change rhtml code or maybe add as new langue (like yml), i think branching rhtml would be better idea (since
that would probably allow jumping from views to controller etc.), could you tell me where i should start, what module
should i eddit etc. i know there's documentation how to contribute and i have read it, but knowing how things are
connected and where should i look for code to modify would be great help

cheers
Comment 1 Torbjorn Norbye 2007-08-21 16:48:58 UTC
Hi Marcin, 
you should jump on dev@ruby.netbeans.org where we can discuss it more directly than through the issue tracker.
(Subscription or web access etc. is described in http://wiki.netbeans.org/wiki/view/RubyFeedback )

Your best starting place is probably languages/haml where there are some preliminary language definitions for HAML, but
probably not very complete. The next step would be to look at the Ruby modelling code in RHTML, specified in ruby/rhtml
in CVS around the code completion code; you'd probably want to do something similar to make code completion, goto
declaration etc work.

Jumping between views and controllers etc. should be working even without haml editing support; I had forgotten about
HAML files so it's probably a trivial fix to the GotoActionView class under ruby/railsprojects/.

We already have an issue tracking the request for HAML support, so I'll close this issue as a duplicate of that one.

*** This issue has been marked as a duplicate of 104815 ***