NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

DustJS files

 
Post new topic   Reply to topic    NetBeans Forums -> Web Client Users
View previous topic :: View next topic  
Author Message
RayDeCampo



Joined: 25 Feb 2014
Posts: 16

PostPosted: Mon Aug 29, 2016 1:20 pm    Post subject: DustJS files Reply with quote

We are using dustjs in our HTML5 project. It is a JS-based templating engine, so we have .dust files which contain primarily HTML but also dustjs directives, e.g.

Code:

<div class="container">
    <ul class="list">
    {#records}
        <li>{#name}</li>
    {/records}
    </ul>
</div>


NB does not recognize the .dust extension (understandably). When I set the MIME type of .dust files to text/html, it works for the most part, but I get spurious errors. For example in the above snippet, the {#records} text is marked as an error, "Text not allowed in ul element."

Is there a more appropriate MIME type to use or another way to get NetBeans to parse the files without getting these spurious errors?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Web Client Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo