What are common file extensions for web programming languages?

  • .action — struts2

  • .do — struts1

  • .xml — XML

  • .rss — RSS feeds

  • .atom — Atom feeds(RSS)

(no extension) -- used now a days to increase readability of the URL, check stackoverflow URL


I have created a Github gist that contains a list of programming languages and their extensions, here is a subset of the data included in the gist file:

{
  "name":"CoffeeScript",
  "type":"programming",
  "extensions":[
     ".coffee",
     "._coffee",
     ".cake",
     ".cjsx",
     ".cson",
     ".iced"
   ]
  },{
  "name":"ColdFusion",
  "type":"programming",
  "extensions":[
     ".cfm",
     ".cfml"
  ]}

I hope it is helpful.

languages.json.


Keep in mind that good URL design will completely hide any underlying file types.


Ruby also tended to use .rhtml in the past.

Stellent uses the .hcsp extension for its page templates.

I believe Django uses .dtl.